Groups | Blog | Home
all groups > flash actionscript > june 2004 >

flash actionscript : embedding fonts at run-time


mgnvs
6/15/2004 9:18:52 PM
The application on which I am working creates textFields and applies
textFormats in actionscript with text and formatting data. For appearance
reasons, I have set the textField to use embedded fonts. In my application, I
have the appropriate font outlines and font symbol. Everything renders
correctly.

What I would like to do is have the ability to use multiple fonts inside of my
application without having to embed each font that might be used. I tried to
achieve this by creating another swf file that contains nothing but a font
outline and a font symbol. My main movie loads this swf file. When the font
movie completely loads and initializes, I create my textField and include the
font from the movieclip inside of the formatting object. However, it appears
that the font cannot be found and the text renders incorrectly.

Basically, what I want to do is dynamically embed a font in order to increase
application flexibility and decrease load time.

Has anyone done something similar to this or have any suggestions on how to
achieve this?

Laiverd.COM
6/15/2004 11:20:15 PM
www.sharedfonts.com


--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

mgnvs
6/16/2004 1:47:48 AM
Interesting, but I'm not so sure I want to license something that I can build
myself. At least by seeing the demo online I know that loading fonts
externally is feasible and will probably find my own solution soon.

Thanks for your reply.
AddThis Social Bookmark Button