summaryrefslogtreecommitdiff
path: root/ext/gd/libgd/gdft.c
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@php.net>2010-03-24 04:12:19 +0000
committerTakeshi Abe <tabe@php.net>2010-03-24 04:12:19 +0000
commit42c14bf473ac16d9fc15c0cf0761c465ef1729b0 (patch)
tree632426b8e9bd17c52d112fa67a8c1be4e9110a91 /ext/gd/libgd/gdft.c
parente4e9eaef4c407c3617925a941ab16db8029a7df1 (diff)
downloadphp-git-42c14bf473ac16d9fc15c0cf0761c465ef1729b0.tar.gz
Fixed bug #51263 (imagettftext and rotated text uses wrong baseline)
Diffstat (limited to 'ext/gd/libgd/gdft.c')
-rw-r--r--ext/gd/libgd/gdft.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gd/libgd/gdft.c b/ext/gd/libgd/gdft.c
index a3ced0ab1b..ac2bf344ff 100644
--- a/ext/gd/libgd/gdft.c
+++ b/ext/gd/libgd/gdft.c
@@ -1101,7 +1101,7 @@ gdImageStringFTEx (gdImage * im, int *brect, int fg, char *fontlist, double ptsi
/* 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 */