package { import flash.display.*; import flash.text.*; public class Main extends Sprite { FontEmbedder; public function Main() { var t:TextField = new TextField( ); t.embedFonts = true; t.htmlText = "<FONT FACE='Verdana'>Hello <b>world</b></FONT>"; addChild(t); } }} class FontEmbedder { [Embed(source="c:/windows/fonts/verdana.ttf", fontFamily="Verdana")] private var verdana:Class; [Embed(source="c:/windows/fonts/verdanab.ttf", fontFamily="Verdana", fontWeight="bold")] private var verdanabold:Class; }
Name (required)
email (will not be published) (required)
Website