[Fontconfig] Multi lingual fontconfig names (was [PATCH] Additional vendor string)

Keith Packard keithp at keithp.com
Sat Feb 26 16:03:15 EST 2005


Around 11 o'clock on Feb 26, Daichi Kawahata wrote:

> As a first step, I'd know if fontconfig has option that I can specify
> codeset of each languages (even on same language code) other than
> assuming themselves to UTF-8!? in inner fontname-wise.

Fontconfig transcodes names it finds in TrueType files into UTF-8, so 
everything should be Unicode from the applications perspective.  If the 
font is lying about the encoding used in the TrueType file, there's not a 
whole lot FontConfig can do about it.

> There seems few documents about family/style/fullnamelang. Could
> you tell me the right direction?

Sorry, I haven't added these to the documentation yet.  These three 
properties indicate the language for the same index in the associated 
family/style/fullname property.  So, for the font:

	family			Kochi Mincho,東風明朝
	familylang		xx,ja

you can see that the name 'Kochi Mincho' has no specific language 
(indicated with the 'xx' tag), and the name '東風明朝' is Japanese

Similarly, the Verdana font has many style names:

style		Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,
		Normál,Normale,Standaard,Normalny,Обычный,Normálne,
		Navadno,Arrunta
	
stylelang	en,ca,cs,de,el,fi,
		hu,it,nl,pl,ru,sk,
		sl,eu

Regular is English, Normal is Catalan, obyčejné is Czech, etc.

When there is only one family/style/fullname, fontconfig doesn't bother to 
create the associated family/style/fullnamelang property.

What we don't have in fontconfig (yet) is any kind of helper function to 
select a name given a set of language tags.  I'd love to see suggestions 
for how that should work posted here.

-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/20050225/41cc8980/attachment.pgp


More information about the Fontconfig mailing list