Enable [Embed] for TTF/OTF fonts when targeting SWF

Supports the embedded font format for flash.text.TextField. Does not support the CFF font format for Flash Text Engine, so specifying embedAsCff="true" will report a compile-time error.

Compile-time errors will also be reported when trying to use systemFont or sourceList attributes that the Flex SDK supported. It may be possible to support them with some tweaks to the way that embedding assets in general works. It looks like a file system path is currently required, and is always derived from source at this time.

Based on the JREFontManager from the Flex SDK, which uses java.awt.Font. Seems to work well with some TTF and OTF fonts that I tested.

Does not support additional, or custom, font managers.
26 files changed