Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Embed(source = "C:\\Users\\Ina\\Desktop\\fl5-source\\assets\\fonts\\UBUNTU-REGULAR.TTF", fontFamily="UbuntuEmbedded", mimeType="application/x-font-truetype")]
- private var UbuntuEmbedded: Class;
- private var ubuntuEmbeddedFont: Font = new UbuntuEmbedded();
- /** Constructor **/
- public function DockButton():void {
- var textFormat:TextFormat = new TextFormat();
- textFormat.align = TextFormatAlign.CENTER;
- textFormat.font = ubuntuEmbeddedFont.fontName;
- // textFormat.font = "_sans";
- textFormat.size = 12;
- _text = new TextField();
- _text.defaultTextFormat = textFormat;
- _text.embedFonts = true;
Add Comment
Please, Sign In to add comment