Re: Can I get language from charset in FcPattern?

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

 



On Wed, Aug 29, 2012 at 5:59 PM, Deokjin Kim <deokjin81.kim@xxxxxxxxxxx> wrote:
> Hello all,
>
> As I know default lang of FcPattern is derived from system lang, so sometimes it is not matched with charset of FcPattern.
> If lang of FcPattern is not accurate, it causes meaningless result of font match.
> Therefore, I want to get valid language from charset in FcPattern.
> I'll use language for font match.

Well, I guess what you want may be FcLangNormalize() that I've added
since 2.10.0. though it's an internal API so far. I could make it
public in the future if necessary but you can avoid that situation if
you use compare="contains" for the lang comparison instead of "eq".

-- 
Akira TAGOH
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig


[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux