Posted
Filed under Action Script
[원문] : http://actionscriptexamples.com/2008/11/26/using-an-embedded-font-with-the-textarea-control-in-flash-with-actionscript-30/






// ActionScript 3.0
import fl.controls.TextArea; var chaparralProEmbeddedFont:Font = new ChaparralProEmbedded(); var textFormat:TextFormat = new TextFormat(); textFormat.font = chaparralProEmbeddedFont.fontName; textFormat.size = 32; var textArea:TextArea = new TextArea(); textArea.setStyle("textFormat", textFormat); textArea.setStyle("embedFonts", true); textArea.text = "The quick brown dog jumps over the lazy fox."; textArea.move(10, 10); textArea.setSize(300, 200); addChild(textArea);




2010/04/26 11:43 2010/04/26 11:43