Is there a way to get the actual bounding box of a glyph in ActionScript?

前端 未结 3 819
一生所求
一生所求 2021-01-15 04:44

I\'m learning ActionScript/Flash. I love to play with text, and have done a lot of that kind of thing with the superb Java2D API.

One of the things I like to know i

3条回答
  •  长发绾君心
    2021-01-15 05:24

    Not reasonably possible in Flash 9 -- Richard's answer is a clever work-around, though probably completely unsuitable for production code (as he mentions) :)

    If you have access to Flash 10, check out the new text engine classes, particularly TextLine.

提交回复
热议问题