[Fontconfig] Wrong Documented Type For FC_LANG?
Akira TAGOH
akira at tagoh.org
Wed May 29 05:56:40 UTC 2019
On Wed, May 29, 2019 at 2:42 PM Lawrence D'Oliveiro
<ldo at geek-central.gen.nz> wrote:
>
> On Wed, 29 May 2019 13:54:22 +0900, Akira TAGOH wrote:
>
> > Right. you could use FcLangSet for FC_LANG of course. but it isn't
> > handy. so fontconfig allows you to operate FC_LANG with String and it
> > is a de facto standard method.
>
> I was originally trying that--using FcPatternGetString to get the
> property value--but it was returning a FcResultTypeMismatch status.
> Only FcPatternGetLangSet works.
That's correct. and you are referring the wrong document for your
purpose. that is for font configuration which users usually do
something with the config file. what you should look at is devel doc
and that says:
lang FC_LANG LangSet Set of RFC-3066-style
languages this font supports
which is exactly what you want.
Hope that helps,
> _______________________________________________
> Fontconfig mailing list
> Fontconfig at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/fontconfig
--
Akira TAGOH
More information about the Fontconfig
mailing list