Why need to load ttf font directly?

June 10, 2012 ยท View on GitHub

Why need to load ttf font directly?

Editors like text processors, T-Shirt editors and others, can allow user to upload and use their own fonts.

How it was done?

The steps are:

  • The ttf font file is loaded and parsed by FontReader
  • Generate a SWF file in memory that include the pasred TTF font data by as3swf
  • Loader the generated SWF to the application domain
  • Register the font which is included in the generated SWF

Dependency

Blog http://portfolio.raisedtech.com/archives/as3-load-and-register-ttf-font-in-runtime/