468,545 Members | 1,901 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,545 developers. It's quick & easy.

centering text in an image

Hi,

I'm using PHP 4.4.4. I have GD and freetype libraries. How do I
center text within an image if that text contains new lines?
According to the imagettftext docs, the x and y specified represent
the coordinates of where the first character begins. But if there are
new lines under it, I need to adjust that x and y by a certain
amount.

What to do? - Dave
Mar 21 '08 #1
0 888

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Greg Shannan | last post: by
19 posts views Thread by George Ziniewicz | last post: by
18 posts views Thread by Heath | last post: by
2 posts views Thread by Ryan W Sims | last post: by
6 posts views Thread by Jerry Camel | last post: by
3 posts views Thread by John Pote | last post: by
9 posts views Thread by CJM | last post: by
1 post views Thread by =?Utf-8?B?ZnJhbmt5?= | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.