On Wed, May 30, 2012 at 11:59 AM, Deokjin Kim <deokjin81.kim at
samsung.com> 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