fontconfig/improve-monospace-detection.patch

16 lines
701 B
Diff

diff -ru fontconfig-2.3.93.20060116.orig/src/fcfreetype.c fontconfig-2.3.93.20060116/src/fcfreetype.c
--- fontconfig-2.3.93.20060116.orig/src/fcfreetype.c 2005-12-21 16:47:42.000000000 +0100
+++ fontconfig-2.3.93.20060116/src/fcfreetype.c 2006-01-16 13:01:53.000000000 +0100
@@ -2649,6 +2649,11 @@
printf ("Bitmap extra char 0x%x\n", ucs4);
}
#endif
+ if (face->family_name != NULL &&
+ (!strcmp(face->family_name,"Luxi Mono") ||
+ !strcmp(face->family_name,"Nimbus Mono L")))
+ fixed_advance = FcTrue;
+
if (fixed_advance)
*spacing = FC_MONO;
else if (dual_advance && APPROXIMATELY_EQUAL (2 * FC_MIN (advance_one, advance_two), FC_MAX (advance_one, advance_two)))