Text.fontrenderingmode, Text.gettextattr() – Adobe Extending Flash Professional CS4 User Manual
Page 463
441
EXTENDING FLASH CS4 PROFESSIONAL
Text object
The following example resets the property:
var doc = fl.getDocumentDOM();
doc.selection[0].embedRanges = "";
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:
Example
The following example shows how you can use the
customThicknessSharpness
value to specify the sharpness and
thickness of the text:
fl.getDocumentDOM().setElementProperty("fontRenderingMode", "customThicknessSharpness");
fl.getDocumentDOM().setElementProperty("antiAliasSharpness", 400);
fl.getDocumentDOM().setElementProperty("antiAliasThickness", -200);
See also
,
text.getTextAttr()
Availability
Flash MX 2004.
Usage
text.getTextAttr(attrName [, startIndex [, endIndex]])
Property value
How text is rendered
device
Renders the text with device fonts.
bitmap
Renders aliased text as a bitmap, or as a pixel font would.
standard
Renders text using the standard anti-aliasing method used by Flash MX 2004. This is
the best setting to use for animated, very large, or skewed text.
advanced
Renders text using the advanced anti-aliasing font rendering technology
implemented in Flash 8, which produces better anti-aliasing and improves readability,
especially for small text.
customThicknessSharpness
Lets you specify custom settings for the sharpness and thickness of the text when
using the advanced anti-aliasing font rendering technology implemented in Flash 8.