shithub: freetype+ttf2subf

Download patch

ref: f582cf3f955dfa1effe351da18a4c1991254cfaa
parent: 03ee7c82a3fc5c923b83cc26525f498786fee933
author: David Turner <[email protected]>
date: Mon Sep 26 05:27:09 EDT 2005

* src/autofit/aflatin.c (af_latin_compute_stem_width): fixed bad
        computation of the "vertical" flag, causing ugly things in LCD mode
        and others.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-09-26  David Turner  <[email protected]>
+
+        * src/autofit/aflatin.c (af_latin_compute_stem_width): fixed bad
+        computation of the "vertical" flag, causing ugly things in LCD mode
+        and others.
+
 2005-09-23  David Turner  <[email protected]>
 
         * src/autofit/aflatin.c (af_latin_hints_init): fixed a bug that
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -1409,7 +1409,7 @@
     AF_LatinAxis     axis     = & metrics->axis[dim];
     FT_Pos           dist     = width;
     FT_Int           sign     = 0;
-    FT_Int           vertical = AF_HINTS_DO_VERTICAL( hints );
+    FT_Int           vertical = ( dim == AF_DIMENSION_VERT );
 
 
     if ( !AF_LATIN_HINTS_DO_STEM_ADJUST( hints ) )