shithub: freetype+ttf2subf

Download patch

ref: 5e43089b4f4a1381cf93cad03e25c56ab0b71ab4
parent: 111b5aefcaf1156fe4f25b3f0f166f3cbc644ac3
author: Werner Lemberg <[email protected]>
date: Tue Nov 7 04:35:03 EST 2006

* src/base/ftsynth.c (FT_GlyphSlot_Embolden): Handle vertical layout
also.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-11-07  Zhe Su  <[email protected]>
+
+	* src/base/ftsynth.c (FT_GlyphSlot_Embolden): Handle vertical layout
+	also.
+
 2006-11-03  Werner Lemberg  <[email protected]>
 
 	* src/base/ftcalc.c: Don't use `long long' but `FT_Int64'.
--- a/src/base/ftsynth.c
+++ b/src/base/ftsynth.c
@@ -137,8 +137,11 @@
         return;
     }
 
-    /* assume the layout is horizontal */
-    slot->advance.x += xstr;
+    if (slot->advance.x)
+      slot->advance.x += xstr;
+
+    if (slot->advance.y)
+      slot->advance.y += ystr;
 
     slot->metrics.width        += xstr;
     slot->metrics.height       += ystr;