ref: 819cbb8aa7da8c1eca1ec71a7258fb6d06a2a8e6
parent: 8530a228889128adfd446514928f36663ed20f04
author: David Turner <[email protected]>
date: Wed Jun 9 16:27:39 EDT 2004
* 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
--- 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 <[email protected]>
* src/autofit/afloader.c (af_loader_load_g): Set `lsb_delta' and
--- 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;