Unable to transcode font file — Flex Builder compilation
I faced this problem recently while working on Flex builder where I wanted to use the free font file with my Flex application. I was using this by adding it in style like below:
<mx:Style>
@font-face {
src: url('assets/fonts/FreeSans.ttf');
font-family: FreeSans;
}
</mx:Style>
While compiling this msxml file i found the error below:
Unable to transcode assets/fonts/FreeSans.ttf

Spent some time by changing some of the properties and looking into mxml file and ttf file but nothing was wrong, it seemed.
Googled and found the solution:
Right click on the Flex project -> Go to Flex Compiler -> Additional compiler arguments: add “-managers flash.fonts.AFEFontManager”. If there is some thing already written there separate it by space.

Try to compile again it will work.
Most Commented Posts
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

This does not worked for me!
What else i am supposed to do?