When using composition of RENDER and non-RENDER fonts,
it will cause seg faults. I don't know in which case
these two types of fonts may co exist, I just use
FcPatternAddBool(pattern, XFT_RENDER, FcFalse);
to force it :-)
Index: xftdraw.c
===================================================================
RCS file: /cvs/xc/lib/Xft/xftdraw.c,v
retrieving revision 1.25
diff -u -3 -p -r1.25 xftdraw.c
--- xftdraw.c 2002/10/11 17:53:02 1.25
+++ xftdraw.c 2003/03/03 07:59:42
@@ -724,7 +724,7 @@ XftDrawGlyphFontSpec (XftDraw *draw,
{
XftGlyphFontSpecRender (draw->dpy, _XftDrawOp (draw, color),
src, draw->render.pict,
- 0, 0, glyphs, i - start);
+ 0, 0, glyphs + start , i - start);
}
}
else
@@ -732,7 +732,7 @@ XftDrawGlyphFontSpec (XftDraw *draw,
while (i < len && !((XftFontInt *) glyphs[i].font)->format)
i++;
if (_XftDrawCorePrepare (draw, color))
- XftGlyphFontSpecCore (draw, color, glyphs, len);
+ XftGlyphFontSpecCore (draw, color, glyphs + start, i - start);
}
}
}