all groups > flash actionscript > september 2005 >
You're in the

flash actionscript

group:

help with embed font for dynamnic textfield created at runtime


Re: help with embed font for dynamnic textfield created at runtime greenwire
9/24/2005 12:00:00 AM
flash actionscript: i'd guess that the embedded font is only available to the textfield it was
assigned to.
you could just place 4 inputfields in the same location, and change visibility
according to which one you want to use.
help with embed font for dynamnic textfield created at runtime (_seb_)
9/24/2005 12:35:42 PM
hi all
I have an input text field created at runtime, and I want to change the
font of that text field at runtime, with a choice of 4 different,
uncommon fonts.
So I created 4 other dynamic textfields, and embedded one of the fonts
for each, thinking that as a result these embedded fonts would be
available for the input text field. But they're not.
What am I missing?

For example, I have one dynamic textfield called "AvantGarde LT Book"
and I embedded the font "AvantGarde LT Book" outline in it.

Then I have my input textfield created at runtime ("customText") and I
set its font with

var my_fmt = new TextFormat();
my_fmt.font = "AvantGarde LT Book";
my_fmt.size = 18;
my_fmt.color = 0x000000;
_root.customText.setTextFormat(my_fmt);

But the font does not show.
What am I missing?

--
seb ( --- @webtrans1.com)
http://www.webtrans1.com
AddThis Social Bookmark Button