Forum Moderators: coopster
My problem is that imagettfbbox() doesn't always seem to get the right numbers. I tried it on 5 different fonts last night and one cut off the right edge and one cut off the top.
What I'd like to do, aside from figure out how to always get the right widths and heights, is create an image that's large enough to not worry about the overlap and then trim it down like the Photoshop trim command does.
Is there a way to do this? I know I could shell to ImageMagick, but I'd prefer to use GD if possible.
Either way, I wound up using ImageMagick convert -trim to make the images and them load them in to a temp variable using GD and append them all together. And it works, so that's what's important :)