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

Lucien Gentis lucien.gentis at waika9.com
Thu Sep 12 09:59:14 UTC 2019


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xftfontopenname.c
Type: text/x-csrc
Size: 934 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20190912/3f0b583b/attachment.c>


More information about the xorg-devel mailing list