[Alpine-info] UTF8 test

Mike Miller mbmiller+l at gmail.com
Tue May 5 13:43:07 PDT 2009


On Tue, 5 May 2009, Lucio Chiappetti wrote:


> - choice of fonts may be critical. e.g.

> Misc-Fixed-Bold-R-Normal--18-120-100-100-C-90-ISO10646-1 does not

> show all glyphs while the -Misc-Fixed-Medium-R-Normal of the same

> font does,

>

> - my favourite choice is

> -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1

> which is the largish one I was used to with rxvt (if it is not

> the same, is very similar)


Different sizes give somewhat different results. The 10x20 size of normal
seems to show everything, as you found, but 8x13 misses Amharic only.
Some of the smaller sizes miss a few more but they do fairly well.



> - urxvt is very easy to build ... but does not work exactly as rxvt

> (for instance there is no cycling between font sizes with KP_ADD)


Right. I noticed that too. The man page says this:

CHANGING FONTS
Changing fonts (or font sizes, respectively) via the keypad is not yet
supported in rxvt-unicode. Bug me if you need this.

You can, however, switch fonts at runtime using escape sequences, e.g.:

printf '\e]710;%s\007' "9x15bold,xft:Kochi Gothic"

You can use keyboard shortcuts, too:

URxvt.keysym.M-C-1: command:\033]710;suxuseuro\007\033]711;suxuseuro\007
URxvt.keysym.M-C-2: command:\033]710;9x15bold\007\033]711;9x15bold\007

rxvt-unicode will automatically re-apply these fonts to the output so
far.


On the other hand, xterm worked -- displayed everything well and cycled
through fonts -- when I used this in ~/.Xresources:

Xterm*font: -Misc-Fixed-Medium-R-Normal--13-120-75-75-C-80-ISO10646-1
Xterm*font1: -Misc-Fixed-Medium-R-Normal--7-70-75-75-C-50-ISO10646-1
Xterm*font2: -Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO10646-1
Xterm*font3: -Misc-Fixed-Medium-R-Normal--13-120-75-75-C-80-ISO10646-1
Xterm*font4: -Misc-Fixed-Medium-R-Normal--15-140-75-75-C-90-ISO10646-1
Xterm*font5: -Misc-Fixed-Medium-R-Normal--20-200-75-75-C-100-ISO10646-1

But that text into that file, then do this before launching xterm:

xrdb -override ~/.Xresources

I got the font ideas from here:

http://en.wikipedia.org/wiki/Fixed_(typeface)

I tried the 9x18 font, but it didn't work in Xterm, nor did a couple of
small ones, it had this to say:

xterm: cannot load font -Misc-Fixed-bold-R-*-*-18-120-100-100-C-180-ISO10646-1
xterm: cannot load font -misc-nil-bold-r-*-*-2-20-75-75-c-10-misc-fontspecific
xterm: cannot load font -misc-nil-medium-r-*-*-2-20-75-75-c-20-ISO10646-1


I added this in ~/.Xresources for rxvt-unicode...

URxvt*font: -Misc-Fixed-Medium-R-Normal--13-120-75-75-C-80-ISO10646-1
URxvt*boldFont: -Misc-Fixed-Bold-R-Normal--13-120-75-75-C-80-ISO10646-1
URxvt*italicFont: -Misc-Fixed-Medium-O-Normal--13-120-75-75-C-80-ISO10646-1
URxvt*boldItalicFont: -Misc-Fixed-Bold-O-Normal--13-120-75-75-C-80-ISO10646-1

...and ran this...

xrdb -override ~/.Xresources

...and now it seems to be working (my fonts are what I consider medium
size, but some of you seem to like fonts that I would consider very
large!).

I don't know why I'm using rxvt-unicode now that I see that Xterm looks
good, it cycles fonts with KP_ADD, and it uses *less* RAM than
rxvt-unicode. The whole point of rxvt was to use less resources, but now
it uses more. What am I missing?

Best,
Mike


More information about the Alpine-info mailing list