Thread: Embedded Fonts
View Single Post

#1
Bookmark and Share!
Embedded Fonts
Old 2008-11-05

Has anyone experienced this phenomenon with embedded text library assets?

I have a Font symbol in my library set to a font of my choosing. We'll say Arial
Linkage identifier named "myArial"

Is it true that once you specify a font in the Library assets for a TextField, that some of actionscript properties for TextFormat become null?

Code:
var my_fmt:TextFormat = new TextFormat();
my_fmt.bold = true;
my_fmt.font = "myArial";
my_fmt.color = Math.random()*0xffffff;
my_fmt.size = 30;

this.createTextField("my_txt", this.getNextHighestDepth(), Stage.width*0.5, Stage.height*0.5, 500, 200);
my_txt.selectable = false;
my_txt.embedFonts = true;
my_txt.text = "Hello world";
my_txt.setTextFormat(my_fmt);
What do you want to build today?
postbit arrow 1 comment | 227 views postbit arrow Reply: with Quote   
3D-man
Registered User
3D-man is offline
seperator
Posts: 793
2001-07-29
Age: 37
seperator

Ultrashock Member Comments: