Hello Akira,
Unfortunately, your recommendation doesn''t work. (fc-match "Malgun
Gothic":namelang=ko)
It returns "malgun.ttf: "Malgun Gothic"
"Regular"", not "?? ??".
Can I know when below feature is supported? (next release means
"2.10.0"?)
Please consider implementing this feature. :)
Best Regards,
Deokjin Kim
------- Original Message -------
Sender : Akira TAGOH<akira at tagoh.org>
Date : 2012-05-30 12:44 (GMT+09:00)
Title : Re: [Fontconfig] Support font family name for each language
On Wed, May 30, 2012 at 11:59 AM, Deokjin Kim wrote:> Hello,
>
> 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
> http://lists.freedesktop.org/mailman/listinfo/fontconfig
--
Akira TAGOH