1193N/AChanges were originally part of Solaris bug fix for:
1193N/A5099951 Fonts (in particular Lucida Sans Typewriter) look terrible in JDS.
1193N/AAllows fontconfig to use bitmap fonts (which may be hand-tuned for the
1193N/Aspecific size) instead of scalable fonts when a close match is found and
1193N/Aanti-aliasing is not requested.
1193N/A@@ -168,6 +168,15 @@ FcCompareSize (FcValue *value1, FcValue
1193N/A+ * Hack to allow bitmap fonts to equal requested font if it is close
1193N/A@@ -430,6 +439,47 @@ FcFontRenderPrepare (FcConfig *confi
1193N/A+FcChangeFormat ( FcPattern *p )
1193N/A+ FcPatternElt *pe = FcPatternElts(p);
1193N/A+ * Hack. If user want monochrome mode, then try to pick bitmaps over
1193N/A+ for ( i = 0; i < p->num; i++ )
+ if ( !strcmp(&pe[i].object, "antialias" ))
+ for ( j = 0; j < p->num; j++ )
+ if ( !strcmp(&pe[j].object, "outline" ))
+ FcPatternObjectAddWithBinding (p, "outline", v,
+ FcValueBindingStrong, 1);
FcFontSetMatchInternal (FcConfig *config,
@@ -444,6 +494,8 @@ FcFontSetMatchInternal (FcConfig *con
for (i = 0; i < NUM_MATCH_VALUES; i++)
@@ -672,6 +724,8 @@ FcFontSetSort (FcConfig *config,
if (FcDebug () & FC_DBG_MATCH)