[Top][All Lists]

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

Re: [ft] Get non-ASCII font family name

From: Keith Packard
Subject: Re: [ft] Get non-ASCII font family name
Date: Thu, 13 Jul 2006 22:28:07 -0700

On Fri, 2006-07-14 at 09:58 +0900, address@hidden wrote:
> Hi
> On Thu, 13 Jul 2006 15:52:23 -0700
> "Tom Fukushima" <address@hidden> wrote:
> >What does the last sentence mean?
> Since FreeType2 provides "unified" API for various font formats,
> the fundamental API is designed for ASCII font name: because
> some font formats cannot include localized font names.
> If you want to prioritize localized font names,
> you may restrict your application to TrueType variants,
> so you cannot use format-independent API of FreeType2.
> You should use format-dependent API of FreeType2.

fontconfig also extracts the non-ASCII names and tags them by language,
including identifying several common mis-encoding errors:

$ fc-list :lang=ja family familylang
Kochi Mincho,東風明朝:familylang=xx,ja
MS ゴシック,MS Gothic:familylang=xx,en
Bitstream Cyberbit:familylang=en
Arial Unicode MS:familylang=en

As you can see, sometimes it's not able to identify the language of the
font name, but much of the time it can, so you can actually display
localized family and style names. Many latin fonts provide a huge list
of style names for each face.


Attachment: signature.asc
Description: This is a digitally signed message part

reply via email to

[Prev in Thread] Current Thread [Next in Thread]