Turn off freetype grid-fitting on solaris

Warren_Baird at cimmetry.com Warren_Baird at cimmetry.com
Thu Feb 6 08:46:00 CST 2003



ChangeLog:

     Add FT_LOAD_NO_HINTING to set of flags to Solaris/Sparc freetype
     FT_Load_Glyph call.

Description:

     On Solaris/Sparc grid-fitting the outline produces gibberish
     output for some font outlines with freetype-2.1.2.

Warren Baird : Warren_Baird at cimmetry.com
Xavier Servettaz

diff -ur clean/wine/dlls/gdi/freetype.c wine/dlls/gdi/freetype.c
--- clean/wine/dlls/gdi/freetype.c 24 Jan 2003 15:12:16 -0000     1.1.1.3
+++ wine/dlls/gdi/freetype.c  28 Jan 2003 18:34:25 -0000
@@ -1401,7 +1401,14 @@
     }

     if(font->orientation || (format != GGO_METRICS && format != GGO_BITMAP))
-        load_flags |= FT_LOAD_NO_BITMAP;
+    {
+        load_flags |= FT_LOAD_NO_BITMAP;
+#if defined(sparc) && defined(sun)
+         /* On Solaris/Sparc grid-fitting the outline produces gibberish
+            output for some font outlines with freetype-2.1.2 */
+         load_flags |= FT_LOAD_NO_HINTING;
+#endif
+    }

     err = pFT_Load_Glyph(ft_face, glyph_index, load_flags);






More information about the wine-patches mailing list