Re: Wrong Documented Type For FC_LANG?

Akira TAGOH <[email protected]> Wed, 29 May 2019 13:54:22 +0900
Newsgroups gmane.comp.fonts.fontconfig
Message-ID <CACT-Cx3VHtY1BqjFcQ2Tzkg=WFGN=36M88=EUNwp2bsj0PgiQQ@mail.gmail.com>
On Wed, May 29, 2019 at 11:04 AM Lawrence D'Oliveiro
<[email protected]> 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
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/fontconfig



-- 
Akira TAGOH
_______________________________________________
Fontconfig mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/fontconfig