diff options
Diffstat (limited to 'src/xftcore.c')
-rw-r--r-- | src/xftcore.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/xftcore.c b/src/xftcore.c index 7e3dc04..f43e467 100644 --- a/src/xftcore.c +++ b/src/xftcore.c @@ -1,7 +1,6 @@ /* - * $XFree86: xc/lib/Xft/xftcore.c,v 1.13tsi Exp $ * - * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc. + * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc. * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -918,8 +917,10 @@ _XftGlyphDefault (Display *dpy, XftFont *public) XftFontInt *font = (XftFontInt *) public; FT_UInt missing[XFT_NMISSING]; int nmissing; + FcBool glyphs_loaded = FcFalse; - XftFontCheckGlyph (dpy, public, FcTrue, 0, missing, &nmissing); + if (XftFontCheckGlyph (dpy, public, FcTrue, 0, missing, &nmissing)) + glyphs_loaded = FcTrue; if (nmissing) XftFontLoadGlyphs (dpy, public, FcTrue, missing, nmissing); return font->glyphs[0]; |