From 819cbb8aa7da8c1eca1ec71a7258fb6d06a2a8e6 Mon Sep 17 00:00:00 2001 From: David Turner Date: Wed, 9 Jun 2004 20:27:39 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ src/winfonts/winfnt.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index f380e7040..fbd83bce8 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 * 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 26e493065..66ceef7ce 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;