Localised font names in fonts.dir
Keith Packard
keithp at keithp.com
Sat Jan 8 12:13:01 PST 2005
Around 17 o'clock on Jan 8, Felix Schulte wrote:
> Is it possible to extend the current XLFD schema to support localised
> font names in fonts.dir? Some (asian) fonts have ascii names and names
> in their own tongue (say... japanese, etc.) and it may be a nice idea
> to allow applications (which use Xlib API such as XListFonts) to
> support the localised names. Any pointers, suggestions, rants
> welcome...
Both the core protocol font requests and the XLFD use solely ISO-8859-1
encoded strings for font names and use case-insensitive matching, making
any other encoding unusable, even if you wanted to violate the protocol
spec and try them.
Fontconfig recently incorporated this specific feature, automatically
extracting all family, style and full names and marking which language/
territory each name is designed for. So, if you can use client-side fonts
through Xft, cairo or some other mechanism, your application will be able
to use localized font names.
-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.x.org/archives/xorg/attachments/20050108/fea47a41/attachment.pgp>
More information about the xorg
mailing list