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@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@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@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to