Adobe Extending Flash Professional CS5 Uživatelský manuál Strana 462

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 565
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 461
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
fontItem.embedVariantGlyphs” on page 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
fontItem.embedVariantGlyphs
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:
Zobrazit stránku 461
1 2 ... 457 458 459 460 461 462 463 464 465 466 467 ... 564 565

Komentáře k této Příručce

Žádné komentáře