php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #51263
Patch rotatedimagettf.patch revision 2010-03-10 14:57 UTC by cschneid at cschneid dot com

Patch rotatedimagettf.patch for GD related Bug #51263

Patch version 2010-03-10 14:57 UTC

Return 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 */
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 15:01:30 2024 UTC