| Patch rotatedimagettf.patch for GD related Bug #51263Patch version 2010-03-10 14:57 UTCReturn to Bug #51263 |
Download this patch Patch Revisions:
 Developer: cschneid@cschneid.com
Index: ext/gd/libgd/gdft.c
===================================================================
--- ext/gd/libgd/gdft.c	(revision 293267)
+++ ext/gd/libgd/gdft.c	(revision 293268)
@@ -1101,7 +1101,7 @@
 
 			/* now, draw to our target surface */
 			bm = (FT_BitmapGlyph) image;
-			gdft_draw_bitmap(tc_cache, im, fg, bm->bitmap, x + x1 + ((pen.x + 31) >> 6), y + y1 + ((pen.y + 31) >> 6) - bm->top);
+			gdft_draw_bitmap(tc_cache, im, fg, bm->bitmap, x + x1 + ((pen.x + 31) >> 6) + bm->left, y + y1 + ((pen.y + 31) >> 6) - bm->top);
 		}
 
 		/* record current glyph index for kerning */
 |