[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xlib UTF-8 support



At Thu, 07 Dec 2006 03:17:32 +0100,
Mirco Bakker wrote:

> The programm (written in C) uses only the standard Xlib. The writing is done using XmbDrawString() (AFAIK function of choice). I also tried Xutf8DrawString (X_HAVE_UTF8_STRING is set) with the same effect. After Googeling for hours I found a few outdated reports that Xlib has a Bug handling UTF-8 Strings (or Fonts). Is this still true or is my code crap?

 X UTF-8 supports is ok, but only a few fonts have all glyphs.

 If you specify any specific iso10646-1 font, check the font dump
by xfd -fn 'font',  you'll see that only some glyphs are defined.
If you use other font like -gnu-unifont, it has some more glyphs.

 Or you can use font sets instead of single iso10646-1 font.
Try to specify legacy fonts separated by ',' comma.  
Like "a14,k14,*", ('*' is wild card).

 Regards
-- 
Jiro SEKIBA <jir@xxxxxxxxxx>

--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/