falling back when special font sets are missing to XDraw (thx to bogon for reporting this issue)

This commit is contained in:
Anselm R. Garbe 2006-05-29 12:00:55 +02:00
parent 41ae6bfe56
commit 14440bc620

View File

@ -37,6 +37,10 @@ blitz_loadfont(Display *dpy, BlitzFont *font, char *fontstr)
while(n--)
fprintf(stderr, "liblitz: missing fontset: %s\n", missing[n]);
XFreeStringList(missing);
if(font->set) {
XFreeFontSet(dpy, font->set);
font->set = nil;
}
}
if(font->set) {
XFontSetExtents *font_extents;