Hi,
One way of achieving this is two have a number of different stylesheets with
the embedded fonts in them.
Use the stylemanager class to change the stylesheet to display the font you
would like.
Eg.
var oldStyleFile:String = "/css/basicfont.swf";
try{
StyleManager.unloadStyleDeclarations(oldStyleFile);
}catch(err:Error){trace("error removing oldStyleFile style");}
//add new theme
var newStyleFile:String = "/css/funkyfont.swf";
try{
StyleManager.loadStyleDeclarations(newStyleFile);
}catch(err:Error){trace("error loading newStyleFile style");}
Hope this helps
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
tchredeemed
Sent: Thursday, 4 December 2008 7:37 a.m.
To: [email protected]
Subject: [flexcoders] Re: Embedding fonts dynamically...
How would I do that?
Also, do you know of any way to tell if the user has a font already,
and I will only embed it if they need it (don't want to load a font
that they already have...)