import flash.display.Sprite; import flash.text.engine.*; [Embed(source="BickhamScriptPro-Regular.otf", fontName="TestFont", mimeType="application/x-font", embedAsCFF="true")] private var fontSymbol:Class; private var textLine:TextLine; private function initApp():void { var fd:FontDescription = new FontDescription("TestFont"); fd.fontLookup = FontLookup.EMBEDDED_CFF; var ef:ElementFormat = new ElementFormat(fd); ef.fontSize = 32; var te:TextElement = new TextElement("The quick brown fox", ef); var tb:TextBlock = new TextBlock(te); textLine = tb.createTextLine(); textLine.x = 100; textLine.y = 100; embeddedFontHolder.addChild(textLine); }