Text offsetWidth server-side

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alejandro
    New Member
    • Mar 2007
    • 27

    Text offsetWidth server-side

    Hi all!
    I was just wondering if there is a way in PHP to estimate the offSetWidth a text element will have when rendered.
    Nothing too accurate, maybe a function that receives a font, font size, and some text and can estimate the size in pixels the word would have client-side.
Working...