Commit 819cbb8aa7da8c1eca1ec71a7258fb6d06a2a8e6

David Turner 2004-06-09T20:27:39

* src/winfonts/winfnt.c: adding missing initialization of the slot->metrics.width and slot->metrics.height when loading a Windows FNT glyph. Thanks to Huw Davies

diff --git a/ChangeLog b/ChangeLog
index f380e70..fbd83bc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,10 @@
 
         * src/sfnt/sfobjs.c: removing compiler warning
 
+        * src/winfonts/winfnt.c: adding missing initialization of the
+        slot->metrics.width and slot->metrics.height when loading a Windows
+        FNT glyph. Thanks to Huw Davies
+
 2004-06-05  Werner Lemberg  <wl@gnu.org>
 
 	* src/autofit/afloader.c (af_loader_load_g): Set `lsb_delta' and
diff --git a/src/winfonts/winfnt.c b/src/winfonts/winfnt.c
index 26e4930..66ceef7 100644
--- a/src/winfonts/winfnt.c
+++ b/src/winfonts/winfnt.c
@@ -658,6 +658,8 @@
     slot->format          = FT_GLYPH_FORMAT_BITMAP;
 
     /* now set up metrics */
+    slot->metrics.width        = bitmap->width << 6;
+    slot->metrics.height       = bitmap->rows << 6;
     slot->metrics.horiAdvance  = bitmap->width << 6;
     slot->metrics.horiBearingX = 0;
     slot->metrics.horiBearingY = slot->bitmap_top << 6;