Re: How can I get font list for specific language?
- To: deokjin81.kim@xxxxxxxxxxx
- Subject: Re: How can I get font list for specific language?
- From: Akira TAGOH <akira@xxxxxxxxx>
- Date: Fri, 16 Mar 2012 17:56:52 +0900
- Cc: "fontconfig@xxxxxxxxxxxxxxxxxxxxx" <fontconfig@xxxxxxxxxxxxxxxxxxxxx>
- Delivered-to: fontconfig@xxxxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tagoh.org; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=bQ0LKeQUWhEfhoAk4cwVtP9WjS8YPZQ2G20v06w+O38=; b=Q/YcjXxnn2WGCgg+aVlMtekU0RwgPNLWDmjMPUudD2l02IV/g6a2otUBF1CCgmpGKb 0Fd/OPxCB9cX8FaXoSGxFYDj9Ec2ygxDf/Y6gus+1w1jlMy7WlPCP1M7GcTyhK5fQWsy U77aqQa2zMkLE3qYFQ9DTFeIA+h3kWfFWb2X0=
- In-reply-to: <2278739.206221331887034593.JavaMail.weblogic@epv6ml02>
- References: <2278739.206221331887034593.JavaMail.weblogic@epv6ml02>
That is because your font just doesn't satisfy the requirements of
ja.orth. you can check what glyphs are really missing in the font.
I did write a small tool to do that some while ago. I don't know if
it still works and need to rewrite it according to some advice but
anyway. see https://bugs.freedesktop.org/show_bug.cgi?id=29312
HTH,
2012/3/16 Deokjin Kim <deokjin81.kim@xxxxxxxxxxx>:
> Hello Akira,
>
> Thank you for your advice.
>
> Main issue is that my japanese font file doesn't have "ja".
> Below is lang info of japanese font file.
> lang=bg|fj|ho|ia|ie|io|kum|nr|om|os|ru|sel|so|ss|st|sw|ts|uz|xh|zu|kj|kwm|ms|ng|rn|rw|sn|za
> So I can't find japanese font using lang info("ja") of font file.
>
> Maybe other two-character specify japanese font file?
> Or my japanese font file has wrong lang info?
>
> Best Regards,
> Deokjin Kim
> ------- Original Message -------
> Sender : Akira TAGOH<akira@xxxxxxxxx>
> Date : 2012-03-16 16:46 (GMT+09:00)
> Title : Re: How can I get font list for specific language?
>
> On Fri, Mar 16, 2012 at 4:06 PM, 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?
>> 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
--
Akira TAGOH
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig
[Fedora Users]
[Fedora Cloud]
[Kernel]
[Fedora Legacy]
[Fedora Packaging]
[Fedora Desktop]
[PAM]
[Red Hat Development]
[Red Hat 9]
[Gimp]
[Yosemite News]