User Guide
Text object 443
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.antiAliasSharpness, text.antiAliasThickness
text.getTextAttr()
Availability
Flash MX 2004.
Usage
text.getTextAttr(attrName [, startIndex [, endIndex]])
Parameters
attrName A string that specifies the name of the TextAttrs object property to be returned.
startIndex An integer that is the index of first character. This parameter is optional.
endIndex An integer that specifies the end of the range of text, which starts with
startIndex and goes up to, but does not include, endIndex. This parameter is optional.
Returns
The value of the attribute specified in the attrName parameter.
advanced
Renders text using the FlashType 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 FlashType font rendering
technology implemented in Flash 8.
NOTE
For a list of possible values for attrName, see Property summary for the TextAttrs object.
Property value How text is rendered