also calculate padding if the font glyph is not to be rendered
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 4 May 2011 05:02:04 +0000 (05:02 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 4 May 2011 05:02:04 +0000 (05:02 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11101 d7cf8633-e32d-0410-b094-e92efae38249

ft2.c

diff --git a/ft2.c b/ft2.c
index 57921c7..3760726 100644 (file)
--- 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];