[The following message is in UTF-8.]
Edward G.J.Lee wrote:
> characters to explain the problem here. I mean can we write a
> fonts.alias someting like:
> "-aliasarphic-新細明體-medium-r-normal--0-0-0-0-c-0-big5-0" \
> "-Arphic-AR PL Mingti2L Big5-medium-r-normal--0-0-0-0-c-0-big5-0"
> "-aliasarphic-標楷體-medium-r-normal--0-0-0-0-c-0-big5-0" \
> "-Arphic-AR PL KaitiM Big5-medium-r-normal--0-0-0-0-c-0-big5-0"
I tried your core-font-alias-in-Chinese idear and it seems not working
for me either. Don't know why.
But it works for Xft font name under UTF-8 locale. For example, in
xterm under UTF-8 locale, I have:
$ xftlsfonts
...
Font 85 Pattern 2 of 16
family: "金桥简楷体"
file: "/home/yaoz/fonts/jqkaijt_n.ttf"
$ LANG=zh_CN.UTF-8 xterm -fa 金桥简楷体-14 &
The new xterm is showing up with proper font without any problem.
Keith Packard wrote:
> Xft doesn't do any conversion on font names at all; if they're stored in
> the TrueType file in UTF-8, then you should provide them in UTF-8 format.
> This is probably wrong, but I don't quite understand what encoding the
> various properties in the TrueType file as exposed by FreeType use.
There may be multiple naming tables in a TTF file. Unfortunately, in
FT_FaceRec structure, 'FT_String* family_name' only filled with Microsoft
Unicode, Apple Unicode, or Apple Roman names. If there is no naming
tables in the above encoding, family_name field will be NULL. In this
case, Xft simply could not make use of the font. According to FreeType
documentation:
family_name
The face's family name. This is an ASCII string, usually in English,
which describes the typeface's family (like `Times New Roman',
`Bodoni', `Garamond', etc). This is a least common denominator used
to list fonts. Some formats (TrueType &. OpenType) provide localized
and Unicode versions of this string. Applications should use the
format specific interface to access them.
One way to work around the problem is to add a Apple Roman naming table
in the font file with UTF-8 names in the table. That satisfies my need
immediately.
Regards,
Yao Zhang
_______________________________________________
Render mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/render