<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi!</div>
<div> </div>
<div>LibXft omits blank chars using Freetype 2.4.9. The reason is that pixel mode is set to FT_PIXEL_MODE_NONE. Which is OK since the bitmap has size 0x0 and, therefore, the mode does not have a meaning at all. However, the mode is checked inside libXft and this test fails and, therefore, blank characters are omitted.</div>
<div> </div>
<div>To fix:</div>
<div> </div>
<div>
<div>diff --git a/src/xftglyphs.c b/src/xftglyphs.c<br/>
index 4b5fb82..18aaf35 100644<br/>
--- a/src/xftglyphs.c<br/>
+++ b/src/xftglyphs.c<br/>
@@ -93,6 +93,9 @@ _compute_xrender_bitmap_size( FT_Bitmap* target,<br/>
height = ftbit->rows;<br/>
pitch = (width+3) & ~3;<br/>
<br/>
+ // in case of blank chars new versions of Freetype set ftbit->pixel_mode to FT_PIXEL_MODE_NONE<br/>
+ // ignore mode in case of width==height==0 since it has no meaning anyways.<br/>
+ if(width!=0 || height !=0)<br/>
switch ( ftbit->pixel_mode )<br/>
{<br/>
case FT_PIXEL_MODE_MONO:</div>
<div> </div>
<div>Regards,</div>
<div> </div>
<div>Matthias Meixner</div>
</div>
<div> </div>
<div> </div>
<div> </div></div></body></html>