Re: pixels per character

From: Date: Fri, 15 Apr 2005 11:19:43 +0000
Subject: Re: pixels per character
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-213135@lists.php.net to get a copy of this message
Christian Calloway wrote:
Hey all, trying to dynamically size cell widths; what I need is a formula to measure pixels per character for an arbitrary font (in this case 10pt verdana). A simple function f(x) = strlen(x) * SOMECONSTANT just doesn't seem to cut it, as returned widths are to small are long. Any ideas?
Try imagettfbbox().

« previous php.general (#213135) next »