embedFonts (TextField.embedFonts property)
public embedFonts : Boolean
Specifies whether to render using embedded font outlines. A Boolean value that, when
renders the text field using embedded font outlines. If
device fonts.
If you set
embedFonts
the
property of a
font
not exist in the library (with the corresponding Linkage Instance name), then the text will not
be displayed.
Availability: ActionScript 1.0; Flash Player 6
Example
In this example, you need to create a dynamic text field called
following ActionScript to embed fonts and rotate the text field. The reference to
refers to a Font symbol in the library, with linkage set to
you have a Font symbol in the library called
the identifier set to
my font
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "my font";
this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 160,
120);
my_txt.wordWrap = true;
my_txt.embedFonts = true;
my_txt.text = "Hello world";
my_txt.setTextFormat(my_fmt);
my_txt._rotation = 45;
The
MovieClip.getNextHighestDepth()
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
filters (TextField.filters property)
public filters : Array
An indexed array containing each filter object currently associated with the text field. The
flash.filters package contains several classes that define specific filters that you can use.
to
for a text field, then you must specify a font for that text via
true
object applied to the text field. If the specified font does
TextFormat
and Export for ActionScript and Export in First Frame selected.
method used in this example requires Flash Player
MovieClip.getNextHighestDepth()
, it renders the text field using
false
my_txt
my font
, with linkage properties set as follows:
my font
, and then use the
my font
. The example assumes that
method.
TextField
,
true
1177
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?