<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
I use XftTextExtents8 (display,font,(FcChar8
*)str,strlen(str),&glyphInfo); instruction to compute width of
string str<br>
<p>Here are values of glyphInfo.width with following strings:</p>
<font size="+2"><tt>String glyphInfo.width</tt></font><br>
<font size="+2"><tt>-------------------------------------</tt></font><br>
<font size="+2"><tt>"e" 9</tt></font><br>
<font size="+2"><tt>" e" (leading space) 13</tt></font><br>
<font size="+2"><tt>"e " (trailing space) 9</tt></font><br>
<font size="+2"><tt>"e e" 22<br>
</tt></font>
<p>So it seems that<span class="tlid-translation translation"
lang="en"><span title="" class=""> trailing spaces are not taken
into account to compute string width.</span></span></p>
<p><span class="tlid-translation translation" lang="en"><span
title="" class="">is it a bug ?<br>
</span></span></p>
</body>
</html>