Posted by JDS on 07/31/05 01:17
On Sat, 30 Jul 2005 13:15:56 +0200, Bas Varkevisser wrote:
> I need to calculate the length of a string in pixels to see if a text
> exactly fits in a fixed-width table.
Impossible.
The work-around I suggest is putting your text into a GIF or other image
using a combination of TTF fonts and the GD functions in PHP.
http://www.newtnotes.com/index.php?itemid=105&catid=4
--
JDS | jeffrey@go.away.com
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/
[Back to original message]
|