Keith Packard <[EMAIL PROTECTED]> writes:

> Around 17 o'clock on Jul 12, Owen Taylor wrote:
> 
> >     This is what face->family_name is meant to be and 
> >     face->family_name is defined to be ASCII traditionally
> >     so it can't really be changed. (Plus, things are just
> >     going to work better generally if this is Roman/ASCII)
> 
> I can accept that face->family_name is supposed to be ASCII, but fontconfig 
> is entirely tolerant of UTF-8 and I'd really rather use those names; I
> can't see how things are just going to work better in this case; we're 
> ending up presenting '?' instead of valid characters, that doesn't seem 
> useful.

I think it's important that it's clear that FT_FAMILY is not localized
and is always the English name if there is one; you don't want
changing the order of names in the font to change the name fontconfig
reports.

I think it's useful if it corresponds to face->family_name as frequently
as possible.

I don't think it would hurt if, when FreeType ends up doing ?
substitution, fontconfig converted to UTF-8 instead. (Hopefully
these cases are really rare - I don't think I've seen an example
of a font yet that has NO English name.)
 
> > B) The localized name for a particular locale that should
> >    be shown to the user; FT_Get_Sfnt_Name() can be used to get
> >    this from a font, but it isn't exposed in fontconfig currently.
> >    In the mail above, I said:
> 
> FT_Get_Sfnt_Name works only with TrueType and OpenType fonts.  Do all other
> formats support only ASCII names?

I'm not aware of any other font formats with localized names; probably
most font formats that aren't just ASCII have horrors like the
following from the PFR spec:

 character[]: An unsigned integer representing each character in the
 name of the physical font. Although the preferred coding system is
 ASCII, any 8-bit coding system can be used as long as it is consistent
 with the manner in which the font is referred to.

Regards,
                                        Owne
_______________________________________________
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts

Reply via email to