Blame SOURCES/gd-2.0.33-BoxBound.patch

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