After spending about 2 hours searching around the ‘net for a way to do this, all I could find were tips for embedding fonts in FB3, which is should be easy enough:
[Embed(source="/Library/Fonts/Arial", fontFamily="foo", mimeType="application/x-font")] public var bar:String;
This is because one of the things that has been added to FB3 (as far as I can tell) is a font manager system. However, I did run across a load of pages with bugs in this method (and you can only use truetype fonts) and it doesn’t help me with FB2.
Eventually I found a page that suggested that I could use fonts embedded in a swf. Embedding fonts from SWF files The relevant Embed tags for actionscript projects are about 3/4 the way down. This works in both FB2 and 3.
Essentially all you do is to drop a text field onto the stage, format it as normal and then publish. In FB put something like this (it doesn’t actually matter where – the embedded font is available throughout your app):
[Embed(source="/assets/swf/arialFontAsset.swf", fontName="Arial")]
var arialPlain:String;
[Embed(source="/assets/swf/arialFontAsset.swf", fontName="ArialBold" fontWeight="bold")]
var arialBold:String;
and Bob’s your embedded font uncle!