1 --- fontconfig-2.13.0/src/fcmatch.c.orig 2018-03-08 16:45:52.377939235 +0000
2 +++ fontconfig-2.13.0/src/fcmatch.c 2018-03-08 16:47:13.473464653 +0000
9 + * Hack to allow bitmap fonts to equal requested font if it is close
11 + if ( v > -.5 && v <= .5 )
18 *bestValue = FcValueCanonicalize (value2);
24 +FcChangeFormat ( FcPattern *p )
27 + FcPatternElt *pe = FcPatternElts(p);
30 + * Hack. If user want monochrome mode, then try to pick bitmaps over
33 + for ( i = 0; i < p->num; i++ )
35 + if ( !strcmp(&pe[i].object, "antialias" ))
37 + int aa = (int) &pe[i].values->value.u.b;
42 + v.type = FcTypeBool;
45 + for ( j = 0; j < p->num; j++ )
47 + if ( !strcmp(&pe[j].object, "outline" ))
55 + FcPatternObjectAddWithBinding (p, "outline", v,
56 + FcValueBindingStrong, 1);
64 FcFontSetMatchInternal (FcFontSet **sets,
70 + FcChangeFormat ( p );
72 for (i = 0; i < PRI_END; i++)
76 FcBool *patternLangSat;
79 + FcChangeFormat ( p );
81 assert (sets != NULL);
83 assert (result != NULL);