Re: [dev] multiple fonts in wmii

From: Yuval Hager <yhager_AT_yhager.com>
Date: Mon, 2 Nov 2009 14:09:07 +0200

On Monday 02 November 2009, Kris Maglione wrote:
> On Mon, Nov 02, 2009 at 08:52:39AM +0200, Yuval Hager wrote:
> >Hi there,
> >
> >Can wmii support multiple fonts? This way if glyphs are not found in the
> >first font, the next one is being searched.
> >I am looking for some functionality along the lines of
> >http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.7.pod#How_
> >does_rxvt_unicode_choose_fonts (yes, this link actually works).
> >
> >Most fonts do not contain the glyphs for my native language, so I am
> > ending up with blank squares instead. If I modify wmii font to one that
> > contains native glyphs, the latin letters are just ugly..
> >
> >OTOH, shouldn't fontconfig do this (select matching fonts by language)
> > by default? it obviously is not the case in my setup, and I couldn't
> > find any docs on how to make this work the way I expect it to.
>
> wmii supports multiple fonts in exactly the same way as rxvt.
> Just list them separated by commas. If you want fontconfig,
> prefix the font string with xft:, otherwise you get regular X11
> fontsets, which have atrocious unicode support.

I've tried this, and it looks like it is not working.
Running
$ wmiir xwrite /ctl font 'xft:Arial'
presents the Hebrew characters correctly (in windows title, and mpd status area), while
$ wmiir xwrite /ctl font 'xft:terminus-10'
presents just white boxes instead.

So I try:
$ wmiir xwrite /ctl font 'xft:terminus-10,xft:Arial'
but no change from previous (white boxes).

I also tried not using xft for the first font:
$ wmiir xwrite /ctl font '-*-terminus-*-*-*-*-12-*-*-*-*-*-iso8859-1,xft:Arial'

but they all give the same result.

I've tried to run urxvt with the same settings, and it seem to work fine:
$ urxvt -fn '-*-fixed-medium-r-*-*-14-*-*-*-*-*-*-*,xft:Miriam Mono CLM'

(in testing the terminal, I used a mono-spaced font - but all fonts give the same result).

I must be missing something?

my wmii version is hg2582, and I am using rumai on top.
ן,
--yuval

Received on Mon Nov 02 2009 - 12:09:07 UTC

This archive was generated by hypermail 2.2.0 : Mon Nov 02 2009 - 12:24:01 UTC