Keith Packard
2005-Nov-21 08:51 UTC
[Fontconfig] GTK <-> fontconfig <-> XLFD font name translation
Around 17 o''clock on Jan 17, Dmitry Karasik wrote:> The problem I''m trying to solve is to teach a particular GTK2 > application to use my own koi8-r bitmap fontYou''ll need to transcode this font to Unicode. Fontconfig doesn''t list any non-Unicode fonts (ISO 8859-1 happens to match the first 256 Unicode codepoints). -keith -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 228 bytes Desc: not available Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20050117/11b12e93/attachment.pgp
Dmitry Karasik
2005-Nov-21 08:51 UTC
[Fontconfig] GTK <-> fontconfig <-> XLFD font name translation
Hello all,
Do you know how do GTK font names map onto fontconfig
and/or XLFD name space? I''m confused, because
GTK font selection ''fixed 13'' corresponds to the font
I identified in XLFD as -*-fixed-*-*-*-*-20-*-*-*-*-*-*-*,
and fontconfig result of ''fc-match fixed-13'' is yet something
else.
The problem I''m trying to solve is to teach a particular GTK2
application to use my own koi8-r bitmap font, but it is neither
shown in GTK font selector, nor is used when I explicitly
give the font name, that apparently should be in GTK format.
The reason I''m asking here, is that during my experiments
I added set of iso8859-1 and koi8-r bitmap fonts of the same
family, and both in GTK font dialog and the output of fc-list,
only iso8859-1 entries are present:
Such as, there are two pcf files, ibm-vio-12x30-iso8859-1.pcf
and ibm-vio-12x30-koi8-r.pcf, but only the former is shown
by fc-list:
ibm\-vio\-12x30\-iso8859\-1.pcf:style=Regular
Any ideas?
Thanks,
--
Sincerely,
Dmitry Karasik