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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux