Created
June 10, 2014 12:03
-
-
Save mizutanikirin/c6c59cf74a34993376cc to your computer and use it in GitHub Desktop.
Font埋め込み
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// (1) ライブラリに埋め込み時にリンゲージ設定する必要あり | |
var textformat:TextFormat = new TextFormat(); | |
//textformat.font="小塚ゴシック Pro B"; | |
textformat.font = new font1().fontName; | |
textformat.size=20; | |
var tf:TextField = new TextField(); | |
tf,mouseEnabled = false; | |
tf.defaultTextFormat=textformat; | |
tf.autoSize= "left"; | |
tf.htmlText="BACK"; | |
tf.embedFonts=true; | |
addChild(tf); | |
tf.alpha = 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment