Created
September 14, 2015 03:56
-
-
Save grvgl/de846493c54dcde65e83 to your computer and use it in GitHub Desktop.
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
var txt:TextField = new TextField(); | |
txt.width=600; | |
txt.height=600; | |
txt.multiline = true; | |
txt.embedFonts = true; | |
txt.htmlText="<font face='Arial' size='24'>I have just been <font face='Arial Bold' size='24'>bolded.</font></font>\n<font face='Arial' size='24'>And a line break </font><font face='Arial Italic' size='24'>was added.</font>"; | |
txt.htmlText+="<font face='Arial' size='24'>This is subscript</font><font face='GG Subscript' size='24'>0123456789qwertyuioplkjhgfdsazxcvbnm</font>"; | |
txt.htmlText+="<font face='Arial' size='24'>This is superscript</font><font face='GG Superscript' size='24'>0123456789qwertyuioplkjhgfdsazxcvbnm</font>"; | |
this.addChild(txt); | |
stop(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment