Commit f582cf3f955dfa1effe351da18a4c1991254cfaa

David Turner 2005-09-26T09:27:09

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

diff --git a/ChangeLog b/ChangeLog
index ee9b787..5181a2b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-09-26  David Turner  <david@freetype.org>
+
+        * 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  <david@freetype.org>
 
         * src/autofit/aflatin.c (af_latin_hints_init): fixed a bug that
diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c
index ab47f88..b7e04e3 100644
--- 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 ) )