fonts: update sfnt2fnt hack

Huw D M Davies h.davies1 at physics.ox.ac.uk
Fri Sep 16 04:46:20 CDT 2005


        Huw Davies <huw at codeweavers.com>
        Update sfnt2fnt hack, now that Wine Courier is known as Courier.
-- 
Huw Davies
huw at codeweavers.com
Index: tools/sfnt2fnt.c
===================================================================
RCS file: /home/wine/wine/tools/sfnt2fnt.c,v
retrieving revision 1.11
diff -u -p -r1.11 sfnt2fnt.c
--- tools/sfnt2fnt.c	19 Aug 2005 09:57:47 -0000	1.11
+++ tools/sfnt2fnt.c	16 Sep 2005 09:44:18 -0000
@@ -160,7 +160,7 @@ static void fill_fontinfo(FT_Face face, 
     il = ascent - (face->glyph->metrics.height >> 6);
 
     /* Hack: Courier has no internal leading, nor do any Chinese fonts */
-    if(!strcmp(face->family_name, "Wine Courier") || enc == 936 || enc == 950)
+    if(!strcmp(face->family_name, "Courier") || enc == 936 || enc == 950)
         il = 0;
 
     first_char = FT_Get_First_Char(face, &gi);



More information about the wine-patches mailing list