From: divverent Date: Wed, 4 May 2011 05:02:04 +0000 (+0000) Subject: also calculate padding if the font glyph is not to be rendered X-Git-Tag: xonotic-v0.6.0~163^2~445 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b30fb3a7cf56e7e1b78a4de82202ee225edd705b;p=xonotic%2Fdarkplaces.git 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 --- 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];