From b30fb3a7cf56e7e1b78a4de82202ee225edd705b Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 4 May 2011 05:02:04 +0000 Subject: [PATCH] also calculate padding if the font glyph is not to be rendered git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11101 d7cf8633-e32d-0410-b094-e92efae38249 --- ft2.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ft2.c b/ft2.c index 57921c76..37607262 100644 --- a/ft2.c +++ b/ft2.c @@ -1452,6 +1452,15 @@ static qboolean Font_LoadMap(ft2_font_t *font, ft2_font_map_t *mapstart, Uchar _ pad_b = gpad_b; Font_Postprocess(font, imagedata, pitch, bytesPerPixel, w, h, &pad_l, &pad_r, &pad_t, &pad_b); } + else + { + pad_l = gpad_l; + pad_r = gpad_r; + pad_t = gpad_t; + pad_b = gpad_b; + Font_Postprocess(font, NULL, pitch, bytesPerPixel, w, h, &pad_l, &pad_r, &pad_t, &pad_b); + } + // now fill map->glyphs[ch - map->start] mapglyph = &map->glyphs[mapch]; -- 2.39.2