FontReader, convert TrueType fonts in graphics with Flex

follow In the last period I was trying to find a way to convert a TrueType font character into graphics for a new Flex project.
First I found a way using TTX which can convert a font file into an XML with all the Glyph informations needed to recreate the font outline.

click But this process requires that all the .ttf files should be converted using TTX before thay can be used in Flash.
So I investigated a bit more and I found a really useful and really well done java project: TypeCast.
What I’ve done next was just to do a porting of the available java code into Actionscript 3 and it works like a charm! It can read a .ttf file and extracts all the font informations, including all the glyph outlines.

source url See a source url demonstration of thie Flex application.

Here you can download the source code:

Source files for the FontRenderer flex project Title: FontRenderer Source (0 click)
get link Caption: Source files for the FontRenderer flex project
Size: 552 kB