Jump to content

PHP, GDlib and TTF fonts


Yesideez

Recommended Posts

I've managed to use imagettftext() to create a black box with some white text.

 

Is there any way to work out how many pixels wide a particular string is?

 

I'm needing to know whether I should split a string to more than one line if it is longer than the image is wide but I don't know how to do it or even if it is possible.

Link to comment
https://forums.phpfreaks.com/topic/51635-php-gdlib-and-ttf-fonts/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.