FcPattern contained in struct XftFont generated via XftFontOpenName function has type mismatch

Lucien Gentis lucien.gentis at waika9.com
Thu Sep 12 16:15:37 UTC 2019


I apologize !

XftFontOpenName calls FcNameParse, and its this function which returns 
an FcPattern whose FC_WEIGHT property has type FcTypeDouble

So it's a Fontconfig problem.

Bye

Le 12/09/2019 à 11:59, Lucien Gentis a écrit :
> I forgot to join a small piece of code to reproduce the problem.
>
> Compile command :
>
> gcc -g -Wall -O2 -I/usr/include/X11 -I/usr/include/X11/Xft 
> -I/usr/include/freetype2 -I /usr/include/fontconfig xftfontopenname.c 
> -o xftfontopenname -lX11 -lXft -lfontconfig
>
> Le 11/09/2019 à 16:13, Lucien Gentis a écrit :
>> Hello,
>>
>> XftFontOpenName function returns a XftFont structure that contains an 
>> FcPattern.
>>
>> Since 2.13.1-2 version of libxft, FC_WEIGHT property of this 
>> FcPattern has type FcTypeDouble instead of FcTypeInteger as expected 
>> in /usr/include/fontconfig/fontconfig.h and it was the case with 
>> 2.13.1-1 version.
>>
>> I don't know if it's a bug or expected behavior.
>>
>>
>> _______________________________________________
>> xorg-devel at lists.x.org: X.Org development
>> Archives: http://lists.x.org/archives/xorg-devel
>> Info: https://lists.x.org/mailman/listinfo/xorg-devel
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: https://lists.x.org/mailman/listinfo/xorg-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.x.org/archives/xorg-devel/attachments/20190912/548df6f2/attachment.html>


More information about the xorg-devel mailing list