character width
- Started
- Last post
- 3 Responses
- jesterlou
configuring dynamic text displays in a Flash app and am wondering if there is a way to estimate the space required.
Example: I have a list of lines to display, the longest being 200 characters. Is there a way to estimate the px width to set the text box if using a set font at a set size?
- jesterlou0
>boost
- lvl_130
couldn't you just put 200 characters in a text box. stretch it so they all fit on one line and get the width from the info tab? or am i not even close
- jesterlou0
well, its more complicated because the text box size will also be dynamic.
I would like the script to determine the number of characters and mulitply by the width of each to draw the box at a width where nothing wraps - and space multiple text boxes proportionally.
Hence my need for character width in pixels - but I dont think you can assign px font sizes as in css