Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs update: How to make PuTTY show all rt-ps glyphs in Windows #8

Closed
NoSubstitute opened this issue Jun 24, 2015 · 4 comments
Closed

Comments

@NoSubstitute
Copy link
Contributor

NoSubstitute commented Jun 24, 2015

Download and install these two fonts.

EverMono
http://www.evertype.com/emono/
http://www.evertype.com/emono/evermono.zip

DejaVu Sans Mono
http://dejavu-fonts.org/wiki/Download
http://sourceforge.net/projects/dejavu/files/dejavu/2.37/dejavu-fonts-ttf-2.37.zip

Use font linking to make EverMono complement DevaVu Sans Mono.

Add (or Edit) a multi-string value for your preferred font under the Windows registry key

Start Regedit. Go to the key below.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink

The added (or edited) key name should be the font name, and the value associated is a list of fallback font options to display the characters not recognized by previous font. There should be some existing ones, you can copy the value from there. Or, add a new Multi String key.

That's what you should do.
Right click SystemLink and select New, then Multi String Value.
Name it DejaVu Sans Mono.

After it's been created, double-click it and enter this inside.
Everson Mono.ttf,EversonMono

At the very least you must logout from Windows and back in again to activate this font link, but I recommend a full reboot.

Now, after rebooting, with PuTTY running change the settings for fonts. Click the PuTTY icon, top-left on your PuTTY window, and then Change settings. Go to Window / Appearance and select DejaVu Sans Mono.

Now your rtorrent-PS should look as beautiful as pyroscope always intended it!

Base info taken from
http://superuser.com/questions/393834/how-to-configure-putty-to-display-these-characters/764855#764855
Complemented with the MSDN doc linked therein.
https://msdn.microsoft.com/en-us/goglobal/bb688134.aspx

@chros73
Copy link
Contributor

chros73 commented Jun 25, 2015

Wow! Nice job, thanks!
I'll try it out. My only concern is that the small ratio glyphs.

This is what I'm using now, it's in the same DejaVu set.
You can add as an alternative solution, and it's more simpler:

  • use Putty version 0.64b or greater (to be able to have bold fonts)
  • under terminal: x "Use background colour to erase screen"
  • under colors: set "Indicate bold text by setting: both"
  • under appearance: x "allow selection of variable pitch font", Font: DejaVu Sans Condensed, size: 9 .

This DejaVu font was the only one (that I tried) which can display almost all fonts and text is still readable. Not perfect, but close:

  • some glyphs are missing from the header (but it doesn't bother me)
  • left side of the fonts can be chopped off from some wider character
  • good thing: ratio glyphs are clearly visible

@NoSubstitute
Copy link
Contributor Author

Yeah, I'm not using beta versions of PuTTY. Still on 0.64.
I'm not a big fan of DejaVu Mono in bold. I think it's easier to read text (irssi, mc, pyWA, top) in normal. Consider I use my tmux for four other panes at the same time as rt-ps.
Also, I'm on a 1920x1080p 17" laptop, with PuTTY at 210x65, so with font size 10 I can hardly read (I can't) those ratio glyphs (column 7?). I just want them to be right, and not broken.

The entire point of this exercise is/was to inform how to display all glyphs in Windows.
So "simpler" isn't a viable alternative solution, if it doesn't display all glyphs.

Personally, I'd be ok with regular numbers for ratio, with the sad smiley for less than 1.

@pyroscope
Copy link
Owner

You know the RTFM thing... 😏

Ratio (☹ plus color indication for < 1, ➀ — ➉ : >= the number, ⊛ : >= 11); change to a different set of number glyphs using ui.style.ratio.set=2 (or 3), 0 is a mostly ASCII one

@chros73
Copy link
Contributor

chros73 commented Jun 27, 2015

@NoSubstitute Thanks for this great idea, it's working pretty well! :) (I haven't known that such a fallback exist.)
"So "simpler" isn't a viable alternative solution, if it doesn't display all glyphs." : Yes, you're right.
I still prefer DejaVu Sans Condensed font over the Mono one: the special characters are much bigger with it (font size: 9, fullHD resolution, 15"4 screen size). So I did your font linking with this font (all chars are good now in the header). Here's the required registry entry: save it as dejavucondensed-eversonmono-link.reg , and run it.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
"DejaVu Sans Condensed"=hex(7):45,00,76,00,65,00,72,00,73,00,6f,00,6e,00,20,00,4d,\
  00,6f,00,6e,00,6f,00,2e,00,74,00,74,00,66,00,2c,00,45,00,76,00,65,00,72,00,\
  73,00,6f,00,6e,00,4d,00,6f,00,6e,00,6f,00,00,00,00,00

What kind of OS and OS version and rtorrent-ps version do you use? I'm asking because of this:
https://groups.google.com/forum/#!topic/pyroscope-users/_5yMqjIHcpo
(You can answer there.)

@pyroscope "ui.style.ratio.set=2" Thanks I haven't know that either :) I tried them out, but I like the default (1) icons with this font.

@pyroscope pyroscope added this to the PS-1.1 milestone Mar 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants