freetype: fix for GulimChe widths

Huw D M Davies h.davies1 at physics.ox.ac.uk
Sun Feb 1 18:14:54 CST 2004


	Huw Davies <huw at codeweavers.com>
	GulimChe has the IsFixedPitch flag set, yet contains glyphs of
	differing widths.  To cope with this we need to call 
	FT_Load_Glyph with the FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH flag.
	in order to get back the correct glyph metrics from FreeType.

Index: dlls/gdi/freetype.c
===================================================================
RCS file: /home/wine/wine/dlls/gdi/freetype.c,v
retrieving revision 1.53
diff -u -r1.53 freetype.c
--- dlls/gdi/freetype.c	19 Jan 2004 21:51:45 -0000	1.53
+++ dlls/gdi/freetype.c	1 Feb 2004 23:58:11 -0000
@@ -1657,8 +1657,8 @@
     FT_Error err;
     INT left, right, top = 0, bottom = 0;
     FT_Angle angle = 0;
-    FT_Int load_flags = FT_LOAD_DEFAULT;
-    float widthRatio = 1.0;	
+    FT_Int load_flags = FT_LOAD_DEFAULT | FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH;
+    float widthRatio = 1.0;
     FT_Matrix transMat = identityMat;
     BOOL needsTransform = FALSE;
 



More information about the wine-patches mailing list