Embedding fonts in Flex 4
In Flex 3 I created a component where I needed to embed the fonts. I did so with:
[Embed(source='assets/fonts/ARIALBD.TTF', fontName='tabfont', fontWeight='bold')]
Until Flex 4 halo components use Flash Player 10 FTE based text (remembering that FTE is only compatible with CFF embedded fonts), you’ll have to also specify embedAsCFF=’false’ because the legacy Flash Player TextField based text cannot use CFF embedded fonts.
Additionally Spark skins for halo components now use the plain font instead of bold.
So now, to do the same in Flex 4, it’s:
[Embed(source='assets/fonts/ARIAL.TTF', embedAsCFF='false', fontName='tabfont')]

October 24th, 2009 at 11:05 pm
[...] Read more here: Flex, AIR, Linux, other geeky stuff, whatevs… » Embedding fonts in … [...]
October 25th, 2009 at 5:46 am
While looking for more information on this problem, I found this really interesting webpage on the opensource Adobe wiki : http://opensource.adobe.com/wiki/display/flexsdk/FTE+and+TLF+text+in+MX+components
October 27th, 2009 at 11:21 am
Social comments and analytics for this post…
This post was mentioned on Twitter by CreativeTweet: Flex News: Embedding fonts in Flex 4: In Flex 3 I created a component where I needed to embed the fon.. http://bit.ly/45QW5g...
December 8th, 2009 at 11:58 am
Thank man, i almost went nuts today until I Found your post here,… thanks alot.
May 26th, 2010 at 6:21 pm
Thanks. Unlike Chris above, I did go nuts for a while.
You saved me and my rotated TextFields once I boiled it down to an embed font problem.