Blame SOURCES/gd-2.0.33-BoxBound.patch

afb210
--- gd-2.0.33/gdft.c.pom	2004-11-02 22:00:48.000000000 +0100
afb210
+++ gd-2.0.33/gdft.c	2006-11-21 09:25:49.000000000 +0100
afb210
@@ -1237,7 +1237,8 @@
afb210
 	  glyph_min.x = penf.x + slot->metrics.horiBearingX;
afb210
 	  glyph_min.y = penf.y - slot->metrics.horiBearingY;
afb210
 
afb210
-#if 0
afb210
+// #if 0 - this version of glyph_max.x setting fixes problem with 
afb210
+//		too large bouonding box
afb210
 	  if (ch == ' ')        /* special case for trailing space */
afb210
             {
afb210
               glyph_max.x = penf.x + horiAdvance;
afb210
@@ -1246,7 +1247,8 @@
afb210
             {
afb210
 	      glyph_max.x = glyph_min.x + slot->metrics.width;
afb210
             }
afb210
-#else
afb210
+//#else
afb210
+#if 0
afb210
           glyph_max.x = penf.x + horiAdvance;
afb210
 #endif
afb210
 	  glyph_max.y = glyph_min.y + slot->metrics.height;