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

This commit is contained in:
Werner Lemberg 2004-03-22 09:25:04 +00:00
parent af3f0093e0
commit ab9d64881b
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2004-03-21 Werner Lemberg <wl@gnu.org>
* src/bdf/bdfdrivr.c (BDF_Glyph_Load): Fix left side bearing.
2004-03-20 Steve Hartwell <shspamsink@comcast.net>
* src/cache/ftcmru.c (FTC_MruList_RemoveSelection): Handle a NULL

View File

@ -720,14 +720,13 @@ THE SOFTWARE.
}
}
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;