[DEVEL] XftTextExtents8 function and spaces characters
Lucien Gentis
lucien.gentis at univ-lorraine.fr
Sat Apr 13 14:21:07 UTC 2019
Hello,
I use XftTextExtents8 (display,font,(FcChar8
*)str,strlen(str),&glyphInfo); instruction to compute width of string str
Here are values of glyphInfo.width with following strings:
String glyphInfo.width
-------------------------------------
"e" 9
" e" (leading space) 13
"e " (trailing space) 9
"e e" 22
So it seems thattrailing spaces are not taken into account to compute
string width.
is it a bug ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.x.org/archives/xorg/attachments/20190413/d5664bb5/attachment.html>
More information about the xorg
mailing list