Is there any way to use these functions:
http://us3.php.net/imagettfbbox
http://us2.php.net/imagettftext
Without having ttf enabled on the server?
Universal TFF + PHP?
Moderator: General Moderators
Re: Universal TFF + PHP?
Is there an alternative that can be used with just GD, even with less quality?
Re: Universal TFF + PHP?
There's GD's built in text (imagestring()..) but that's a little limited. There's imagepstext() if your version of PHP has been compiled with t1lib. There's imagefttext() too, though that requires freetype which I assume you don't have else imagettftext() would also work.
If none of those work then there's always bitmap fonts.. essentially you draw each letter you need into an image (or series of images like a.png, b.png, c.png etc), load them and using imagecopy() to "write" the text letter by letter. It might sound awful but it's actually a really good technique for very complicated, artistic lettering.
If none of those work then there's always bitmap fonts.. essentially you draw each letter you need into an image (or series of images like a.png, b.png, c.png etc), load them and using imagecopy() to "write" the text letter by letter. It might sound awful but it's actually a really good technique for very complicated, artistic lettering.