Here's what I'm trying to do. I must extract some text out from a Mysql database and write it down in a page that must have rigid (unalterable) width/height (it uses a lot of images and will screw up if more text lines are inserted - god, these designers
The obvious solution is to trim it at the end, eventually add three dots so people will know that it's more text there. But how do I know how many lines the text will take? I have a fix font (Verdana, bold) and a fix font size (10px), but this is not much help.
The stupid solution
PS: ohh, i thought also at imagettfbox function but from what I can tell this only gives you the size of the text if you write the text on one line. It's not the case.
Thank you very much,
Cristian