Skip to content

unstoppable/actionscript3--flash--load-and-register-ttf-font-in-runtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

actionscript3--flash--load-and-register-ttf-font-in-runtime

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/

About

actionscript3, flash, load and register ttf font in runtime

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published