Posted by Marek Kilimajer on 10/17/83 11:13
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().
Navigation:
[Reply to this message]
|