[Fontconfig] Wrong Documented Type For FC_LANG?

Akira TAGOH akira at tagoh.org
Wed May 29 04:54:22 UTC 2019


On Wed, May 29, 2019 at 11:04 AM Lawrence D'Oliveiro
<ldo at geek-central.gen.nz> wrote:
>
> In fontconfig.h, the “lang” property is listed as follows:
>
>     #define FC_LANG                 "lang"              /* String RFC 3066 langs */
>
> this would seem to indicate that the value is supposed to be a
> string. I just discovered, in running a test with my python_fontconfig
> binding <https://github.com/ldo/python_fontconfig/>, that in fact this
> property value is an FcLangSet.

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.

> Does this apply to the other properties with “lang” in their name as
> well?

No. that is only for FC_LANG.

> _______________________________________________
> Fontconfig mailing list
> Fontconfig at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/fontconfig



-- 
Akira TAGOH


More information about the Fontconfig mailing list