Re: pixels per character

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/14/05, Christian Calloway <callowaylc@xxxxxxxxx> wrote:
> 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?

Google for 'font width calculator'.  I've seen a few of them over the
years, mostly Flash or Java based.


-- 
Greg Donald
Zend Certified Engineer
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux