View Single Post
08-01-2007, 10:21 PM
#2
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

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).