[Fontconfig] Support font family name for each language
akira at tagoh.org
Tue May 29 20:44:38 PDT 2012
On Wed, May 30, 2012 at 11:59 AM, Deokjin Kim <deokjin81.kim at samsung.com> wrote:
> As I know, 1 font file can have multiple font family name.
> For example, "Malgun Gothic" has two font family name.
> [Malgun Gothic,맑은 고딕:style=Regular]
> "Malgun Gothic" is for english and "맑은 고딕" is for korean.
> I can know this information through fontforge program.(Element - Font Info - TTF Names)
> Can I get font family name using current language?
> If current language is english, I want to get "Malgun Gothic".
> And if current language is korean, I want to get "맑은 고딕".
Well, that feature will be supported in next release. if you want to
set explicitly, try this:
$ fc-match "Malgun Gothic":namelang=ko
> "fc-list" shows all font family name, but I want to get only font family name which is for current language.
Well, strictly speaking there are no way to pull only fonts that has
the localized family name for the certain locale because it's not
essential to find the best font out. you can try :lang=ko as the
pattern but it may not give you the comfortable result.
> Best Regards,
> Deokjin Kim
> Fontconfig mailing list
> Fontconfig at lists.freedesktop.org
More information about the Fontconfig