shithub: freetype+ttf2subf

Download patch

ref: 60e0a4d5db5703bfa2c2dc7efaab6269d0fbc895
parent: 9a38e3dd35920d2817a301c7d445cf81d4343c77
author: Werner Lemberg <[email protected]>
date: Mon Mar 22 04:25:04 EST 2004

* src/bdf/bdfdrivr.c (BDF_Glyph_Load): Fix left side bearing.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-03-21  Werner Lemberg  <[email protected]>
+
+	* src/bdf/bdfdrivr.c (BDF_Glyph_Load): Fix left side bearing.
+
 2004-03-20  Steve Hartwell  <[email protected]>
 
 	* src/cache/ftcmru.c (FTC_MruList_RemoveSelection): Handle a NULL
--- a/src/bdf/bdfdrivr.c
+++ b/src/bdf/bdfdrivr.c
@@ -720,14 +720,13 @@
       }
     }
 
-    slot->bitmap_left = 0;
+    slot->bitmap_left = glyph.bbx.x_offset;
     slot->bitmap_top  = glyph.bbx.ascent;
 
     /* FZ XXX: TODO: vertical metrics */
     slot->metrics.horiAdvance  = glyph.dwidth << 6;
     slot->metrics.horiBearingX = glyph.bbx.x_offset << 6;
-    slot->metrics.horiBearingY = ( glyph.bbx.y_offset +
-                                   glyph.bbx.height ) << 6;
+    slot->metrics.horiBearingY = glyph.bbx.ascent << 6;
     slot->metrics.width        = bitmap->width << 6;
     slot->metrics.height       = bitmap->rows << 6;