Around 9 o'clock on Jul 22, Brian Stell wrote:

> Wouldn't it make more sense for a naive app to get the localized name? Thus
> apps users of simple apps would get names they could read; eg: Japanese
> users by default get Japanese names, Greek users would get Greek names, and
> so forth.

Yes, I agree that would be nicer, except that truely na�ve applications are
likely to incorrectly display UTF-8 strings.  The FcPatternGetLangString
API would return the appropriate UTF-8 string so that slightly-less na�ve
applications could trivially extract the localized name.

> To make the code "regular" for all languages I would really prefer 
> to store the ascii only name and then  always get the localized 
> names for display.

In the suggested API I presented, that's quite possible.  The only cost is 
in converting the ascii name into a local name which requires searching 
through the set of available fonts to match the ascii name.  This would 
have the (questionable) property where the application would find out that 
configured fonts were missing.

Keith Packard        XFree86 Core Team        HP Cambridge Research Lab


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

Reply via email to