shithub: freetype+ttf2subf

Download patch

ref: 4696dde23d4dd71fc68912004e0db454e122204e
parent: ea79b846212982f90b1859ee62e6ce39f5a5f53a
author: Werner Lemberg <[email protected]>
date: Mon Jun 20 15:09:02 EDT 2011

* src/autofit/aflatin.c (af_latin_metrics_scale_dim): Fix change
from 2011-05-04.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-20  Werner Lemberg  <[email protected]>
+
+	* src/autofit/aflatin.c (af_latin_metrics_scale_dim): Fix change
+	from 2011-05-04.
+
 2011-06-18  Werner Lemberg <[email protected]>
 
 	Update license documentation.
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -665,6 +665,9 @@
           if ( delta1 < 0 )
             delta2 = -delta2;
 
+          blue->ref.fit   = FT_PIX_ROUND( blue->ref.cur );
+          blue->shoot.fit = blue->ref.fit + delta2;
+
 #else
 
           /* simplified version due to abs(dist) <= 48 */
@@ -682,10 +685,10 @@
           if ( dist < 0 )
             delta2 = -delta2;
 
-#endif
-
           blue->ref.fit   = FT_PIX_ROUND( blue->ref.cur );
-          blue->shoot.fit = blue->ref.fit + delta2;
+          blue->shoot.fit = blue->ref.fit - delta2;
+
+#endif
 
           blue->flags |= AF_LATIN_BLUE_ACTIVE;
         }