Skip to main content
Known Participant
February 3, 2011
Answered

Measuring Length (inches/cm) of a Text (CS5/ActionsScript)

  • February 3, 2011
  • 1 reply
  • 368 views

I need to perform resizing of a cell so that it is exactly the smallest width possible without an overflow/overset condition being caused. I could perform a resizing loop to check when Cell.overflow becomes false, but that seems slow and ugly. Is there a way that I can determine the required width (in inches/cm, etc) of the cell's text contents, and then set the width of the cell accrodingly?

TIA

mlavie

This topic has been closed for replies.
Correct answer Harbs.

Check out Tex.horizontalOffset and Text.endHorizontalOffset

Harbs

1 reply

Harbs.
Harbs.Correct answer
Legend
February 3, 2011

Check out Tex.horizontalOffset and Text.endHorizontalOffset

Harbs