public class Main extends Sprite { public function Main ( ) { var t:TextField = new TextField( ); t.embedFonts = true; t.htmlText = "<FONT FACE='Verdana'>Hello world</FONT>"; addChild(t); } } } class FontEmbedder { [Embed(source="c:/windows/fonts/verdana.ttf",fontFamily="Verdana")] private var verdana:Class; }
Related Scripts with Example Source Code in same category :