I've run into this problem before and as far as I can tell you have two options, none of them very nice:
- Use the new flash.text.engine in Flash Player 10... its very hard to use but I think it will measure such fonts (and ligatures) properly.
- Draw the textfield into a bitmapdata and use getColorBoundsRect to determine its real dimensions.
I ended up using the latter as changing the whole app to the new engine would have been much much harder. You will need to tweak margins and use a larger textfield (inside some container) to be able to draw it properly, but it should work.
Cay
2009-11-02 01:17:02