Thread
:
GD Question - Aligning text
View Single Post
08-01-2007, 10:21 PM
#
2
Salathe
Status:
Community Archaeologist
Join date:
Jul 2004
Location:
Scotland
Expertise:
Software Development
Software:
vim, PHP
Posts:
3,820
iTrader:
25
/ 100%
You can use GD's
imagettfbbox
function to calculate the 'bounding box' of the text (in this case "Pro") then do a few quick calculations for the x and y co-ordinates to be fed into imagettftext (or whatever you're using to render the text).
Salathe
View Public Profile
Visit Salathe's homepage!
Find More Posts by Salathe