Around 18 o'clock on Nov 2, "MoonDreamer" wrote:

>   XftFontSet * fs = XftListFonts (display, screen, 
>                                   XFT_ENCODING, XftTypeString, "gb2312.1980-0",
>                                   XFT_FAMILY, 0);

Xft is in the process of eliminating non-Unicode encodings for text; 
asking for an encoding will soon not be a option in this context.  Right 
now, it just gives the wrong answer.  If you've got a TrueType font with 
Unicode code-points for the necessary glyphs, it should be possible to use 
iconv to convert from GB2312 to ISO10646 and have the right thing happen.  
I'm unsure how the internals of KDE 2.2 are structured, but certainly Qt 
is storing the data in Unicode format already, it may just be a matter of 
ensuring that the underlying font architecture is able to support this 
particular encoding transformation when using Xft.

(btw, you're missing a ',0' after the encoding name; that separates the 
list of matching items from the list of returned objects)

[EMAIL PROTECTED]        XFree86 Core Team              SuSE, Inc.


_______________________________________________
Render mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/render

Reply via email to