Applying embedded characters to a textfield created with actionscript
Hello
Im having troubles embedding my textfield created dynamicly.
I tired with:
ldr.createTextField("inf", 3, 0, 20, 350, 14);
ldr.inf.multiline = false;
ldr.inf.wordWrap = false;
ldr.inf.border = false;
ldr.inf.html = false;
ldr.inf.type = "input";
ldr.inf.embedFonts = true;
ldr.inf.selectable = false;
ldr.inf.background = false;
ldr.inf.textColor = 0xFFFFFF;
ldr.inf.autoSize = "center";
ldr.inf.text = "0 %";
myTF = new TextFormat();
myTF.font = "arial";
myTF.size = 11;
myTF.bold = true;
ldr.inf.setNewTextFormat(myTF);
[KM7-AS3] Embed fonts revisit
With AS3 and KM7, is this still the only way to embed fonts in fields created on the fly? I've implemented it and it works, but I'd rather not have extraneous fields.
Quote:
Originally Posted by
w.brants
The embedFonts property of a dynamic textfield only means that it should be rendered using an embedded font. It doesn't embed the font.
To embed a font, you need to create a dynamic textbox using the gui and embed the characters you need. The textbox can be placed off stage if you want to use the font in another textbox that is created using actionscript.
Make sure you are using the same font for the actionscript created textbox as the one you embed in the swf file.