Initial commit
[gentoo-soor-overlay.git] / x11-libs / libXft / files / libXft-embeddedbitmap-property.patch
bloba532bff897c629681d8d5bfc9af0c87dffc2f2d4
1 --- xft-2.1.12.orig/src/xftfreetype.c
2 +++ xft-2.1.12/src/xftfreetype.c
3 @@ -380,7 +380,7 @@
4 double dsize;
5 double aspect;
6 FcMatrix *font_matrix;
7 - FcBool hinting, vertical_layout, autohint, global_advance;
8 + FcBool hinting, vertical_layout, autohint, global_advance, embeddedbitmap;
9 #ifdef FC_HINT_STYLE
10 int hint_style;
11 #endif
12 @@ -509,8 +509,19 @@
14 fi->load_flags = FT_LOAD_DEFAULT;
16 + /* disable bitmaps if requested */
17 + switch (FcPatternGetBool (pattern, FC_EMBEDDED_BITMAP, 0, &embeddedbitmap)) {
18 + case FcResultNoMatch:
19 + embeddedbitmap = FcTrue;
20 + break;
21 + case FcResultMatch:
22 + break;
23 + default:
24 + goto bail1;
25 + }
27 /* disable bitmaps when anti-aliasing or transforming glyphs */
28 - if (fi->antialias || fi->transform)
29 + if ((fi->antialias && embeddedbitmap == FcFalse) || fi->transform)
30 fi->load_flags |= FT_LOAD_NO_BITMAP;
32 /* disable hinting if requested */