![MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference Download Page 1249](http://html.mh-extra.com/html/macromedia/flash-8-actionscript-2-0-language/flash-8-actionscript-2-0-language_reference_6875371249.webp)
TextRenderer (flash.text.TextRenderer) 1249
Parameters
fontName
:String
- The name of the font for which you are applying settings.
fontStyle
:String
- The font style can be
"bold"
,
"bolditalic"
,
"italic"
, and
"none"
.
colorType
:String
- This value can be either
"dark"
or
"light"
.
advancedAntialiasingTable
:Array
- An array of CSM settings for the specified font. Each
setting is an object with the following properties:
■
fontSize
■
insideCutOff
■
outsideCutOff
The
advancedAntialiasingTable
array can contain multiple entries that specify CSM
settings for different font sizes. (See example.)
The
fontSize
is the size, in pixels, for which the settings apply.
Advanced anti-aliasing uses adaptively sampled distance fields (ADFs) to represent the
outlines that determine a glyph. Macromedia Flash uses an outside cutoff value
(
outsideCutOff
), below which densities are set to zero, and an inside cutoff value
(
insideCutOff
), above which densities are set to a maximum density value (such as 255).
Between these two cutoff values, the mapping function is a linear curve ranging from zero at
the outside cutoff to the maximum density at the inside cutoff.
Adjusting the outside and inside cutoff values affects stroke weight and edge sharpness. The
spacing between these two parameters is comparable to twice the filter radius of classic anti-
aliasing methods; a narrow spacing provides a sharper edge, while a wider spacing provides a
softer, more filtered edge. When the spacing is zero, the resulting density image is a bilevel
bitmap. When the spacing is very wide, the resulting density image has a watercolor-like edge.
Typically, users prefer sharp, high-contrast edges at small point sizes, and softer edges for
animated text and larger point sizes.
The outside cutoff typically has a negative value, and the inside cutoff typically has a positive
value, and their midpoint typically lies near zero. Adjusting these parameters to shift the
midpoint toward negative infinity increases the stroke weight; shifting the midpoint toward
positive infinity decreases the stroke weight. Make sure that the outside cutoff value is always
less than or equal to the inside cutoff value.
Under most circumstances, a gamma exponent equal to 1 is adequate. However, when
subpixel rendering [Liquid Crystal Display mode (LCD)], you use the gamma exponent to
mitigate color fringing artifacts that occur when rendering typefaces with thin strokes (for
example, Times Roman) and small point sizes. You can also use the gamma exponent to
enhance contrast in both Cathode Ray Tube (CRT) and LCD modes.
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...