Embedding font in Flash with ActionScript 3 (AS3) example. Font embedding is required for things like rotating text inside a TextField and anti-aliasing.

A very important part: embedAsCFF='false'. Trying to use embedded font for TextField doesn't work (text doesn't appear) until that parameter is added.

package {
    public class FontAssets {
        [Embed(source = 'FreeSans.ttf', fontName = 'FreeSans',embedAsCFF='false')]
        public static const freesans:Class;
    }
}