Is it possible to embed a font in a single SWF to be used throughout many other SWFs, while maintaining the ability to do all the text arrangement and setup through the Flash IDE in those SWFs?
I know I can retrieve a font from an external SWF, register it, and use it in a new TextField. However it would be nice if I didn't have to create every text field in code.
For instance, the following is after loading in a SWF that has a font in it and calling the following using the name of that font:
Font.registerFont();
The original text field will show nothing, while the newly creating one USING THE FORMAT FROM THE ORIGINAL, shows perfectly fine.
var format:TextFormat = onStageTextField.getTextFormat();
onStageTextField.embedFonts = true;
onStageTextField.defaultTextFormat = format;
onStageTextField.text = "My Text";
var newTextField:TextField = new TextField();
newTextField.width = 300;
newTextField.embedFonts = true;
newTextField.defaultTextFormat = format;
newTextField.text = "My Text";
contentMC.addChild(newTextField);