Commit cb80b449 authored by Stefan Dirsch's avatar Stefan Dirsch

Added fake bold support (#1579, Novell #38202/223682).

parent 60bb5229
......@@ -385,6 +385,7 @@ XftFontInfoFill (Display *dpy, _Xconst FcPattern *pattern, XftFontInfo *fi)
FcChar32 hash, *hashp;
FT_Face face;
int nhash;
FcBool bitmap;
if (!info)
return FcFalse;
......@@ -512,8 +513,22 @@ XftFontInfoFill (Display *dpy, _Xconst FcPattern *pattern, XftFontInfo *fi)
fi->load_flags = FT_LOAD_DEFAULT;
#define XFT_EMBEDDED_BITMAP "embeddedbitmap"
switch (FcPatternGetBool (pattern, XFT_EMBEDDED_BITMAP, 0, &bitmap)) {
case FcResultNoMatch:
bitmap = FcFalse;
case FcResultMatch:
goto bail1;
/* disable bitmaps when anti-aliasing or transforming glyphs */
if (fi->antialias || fi->transform)
if ((!bitmap && fi->antialias) || fi->transform)
fi->load_flags |= FT_LOAD_NO_BITMAP;
/* disable hinting if requested */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment