Deokjin Kim
2012-Mar-16 07:06 UTC
[Fontconfig] How can I get font list for specific language?
Hello, I want to get font list for specific language. As I know, font file(*.ttf) has lang info. Below is example. lang=bg|ko|kum|os|ru|sel What''s the meaning of above info? bg ==> BULGARIAN ko ==> KOREAN kum ==> ?? os ==> ?? ru ==> RUSSIAN sel ==> ?? Is it right infomation? I can get lang info(lang=bg|ko|kum|os|ru|sel) using modification of fc-list.c, but I don''t know exact meaning. Actually above font file is for korean. But it has not only "ko", but also "bg", "ru" .... Font file has wrong lang info? Otherwise, my approach is not good? If you know proper approach, please let me know. Thank you, Deokjin Kim
Akira TAGOH
2012-Mar-16 07:46 UTC
[Fontconfig] How can I get font list for specific language?
On Fri, Mar 16, 2012 at 4:06 PM, Deokjin Kim <deokjin81.kim at samsung.com> wrote:> Hello, > > I want to get font list for specific language. > > As I know, font file(*.ttf) has lang info. Below is example. > ? ? ?lang=bg|ko|kum|os|ru|sel > What''s the meaning of above info? > ? ? ?bg ==> BULGARIAN > ? ? ?ko ==> KOREAN > ? ? ?kum ==> ?? > ? ? ?os ==> ?? > ? ? ?ru ==> RUSSIAN > ? ? ?sel ==> ?? > Is it right infomation?bg is Bulgarian, ko is Korean, kum is Kumyk, os is Ossetian, ru is Russian, sel is Selkup.> I can get lang info(lang=bg|ko|kum|os|ru|sel) using modification of fc-list.c, but I don''t know exact meaning. > Actually above font file is for korean. But it has not only "ko", but also "bg", "ru" .... > > Font file has wrong lang info? Otherwise, my approach is not good?That would means that font has glyphs those orthography files contains.> If you know proper approach, please let me know.I think you need to add the lang into your pattern like: FcPatternAddString(pat, FC_LANG, "ko"); -- Akira TAGOH
Alan Coopersmith
2012-Mar-16 14:32 UTC
[Fontconfig] How can I get font list for specific language?
On 03/16/12 12:06 AM, Deokjin Kim wrote:> Hello, > > I want to get font list for specific language. > > As I know, font file(*.ttf) has lang info. Below is example. > lang=bg|ko|kum|os|ru|sel > What''s the meaning of above info?http://www.loc.gov/standards/iso639-2/php/code_list.php -- -Alan Coopersmith- alan.coopersmith at oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc