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 ?

_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Reply via email to