Text.embedvariantglyphs, Text.fontrenderingmode – Adobe Extending Flash Professional CS5 User Manual
Page 462
![background image](https://www.manualsdir.com/files/771341/content/doc462.png)
440
EXTENDING FLASH PROFESSIONAL
Text object
Last updated 5/2/2011
Example
The following example assumes that the first or only item in the current selection is a classic text object and sets the
embedRanges
property to
"1|3|7"
:
var doc = fl.getDocumentDOM();
doc.selection[0].embedRanges = "1|3|7";
The following example resets the property:
var doc = fl.getDocumentDOM();
doc.selection[0].embedRanges = "";
text.embedVariantGlyphs
Availability
Flash CS4 Professional.
Usage
text.embedVariantGlyphs
Description
Property; a Boolean value that specifies whether to enable the embedding of variant glyphs (
true
) or not (
false
). This
property works only with dynamic or input text; it is ignored if used with static text. The default value is
false
.
Note: Beginning in Flash Professional CS5, font embedding is controlled at the document level instead of the text object
level. Use the “
281 property instead of the text.embedVariantGlyphs property.
In Flash Professional CS5, the text.embedVariantGlyphs property no longer has any effect because Flash always embeds
variant glyphs for TLF text and never embeds them for Classic text.
Example
The following example enables variant glyphs to be embedded in the selected Text object:
fl.getDocumentDOM().selection[0].embedVariantGlyphs = true;
See also
text.fontRenderingMode
Availability
Flash 8.
Usage
text.fontRenderingMode
Description
Property; a string that specifies the rendering mode for the text. This property affects how the text is displayed both on
the Stage and in Flash Player. Acceptable values are described in the following table: