https://github.com/unstoppable/actionscript3--flash--load-and-register-ttf-font-in-runtime
actionscript3, flash, load and register ttf font in runtime
https://github.com/unstoppable/actionscript3--flash--load-and-register-ttf-font-in-runtime
Last synced: 7 months ago
JSON representation
actionscript3, flash, load and register ttf font in runtime
- Host: GitHub
- URL: https://github.com/unstoppable/actionscript3--flash--load-and-register-ttf-font-in-runtime
- Owner: unstoppable
- Created: 2012-06-10T02:08:02.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-06-10T02:24:00.000Z (over 13 years ago)
- Last Synced: 2024-11-15T14:35:27.600Z (about 1 year ago)
- Language: ActionScript
- Size: 4.84 MB
- Stars: 17
- Watchers: 6
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-actionscript-sorted - register-ttf-font-in-runtime - actionscript3, flash, load and register ttf font in runtime (Multimedia / Font)
README
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
* FontReader
Convert True Type fonts in graphics with Flex. http://www.sephiroth.it/weblog/archives/2007/07/fontreader_convert_truetype_fonts_in.php
* as3swf
A low level Actionscript 3 library to parse, create, modify and publish SWF files.
https://github.com/claus/as3swf/tree/
Blog
http://portfolio.raisedtech.com/archives/as3-load-and-register-ttf-font-in-runtime/