Does anybody know how can I compute line metrics (ascent, descent, height, width) using TextBuilder class from flex sdk (swfutils.jar)?
I would like to write a Java class where I can specify the path to a font and the size of the text and to somehow use TextBuilder and other classes from swfutils to compute line metrics. Loading a font is not a problem, I cannot find a way of specifying the size of the text.
Here's a link to the open source flex sdk source files: http://opensource.adobe.com/svn/opensource/flex/sdk/trunk
If you have some ideas, please post them here.
Thank you guys!
You can find TextBuilder class in modules/swfutils/src/java/flash/swf/builder/tags/TextBuilder