]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
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)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 4 May 2011 05:37:25 +0000 (07:37 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11101 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=b30fb3a7cf56e7e1b78a4de82202ee225edd705b

ft2.c

diff --git a/ft2.c b/ft2.c
index 57921c762057b903473a65e40218b8083fe1d5e2..376072622a8364c9b0ece9bc06425ea9ccbdcc29 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];