MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference page 1249

Actionscript 2.0 language reference
Table of Contents

Advertisement

Parameters
- The name of the font for which you are applying settings.
fontName:String
- The font style can be
fontStyle:String
- This value can be either
colorType:String
advancedAntialiasingTable:Array
setting is an object with the following properties:
fontSize
insideCutOff
outsideCutOff
The
advancedAntialiasingTable
settings for different font sizes. (See example.)
The
is the size, in pixels, for which the settings apply.
fontSize
Advanced anti-aliasing uses adaptively sampled distance fields (ADFs) to represent the
outlines that determine a glyph. Macromedia Flash uses an outside cutoff value
(
), below which densities are set to zero, and an inside cutoff value
outsideCutOff
(
), above which densities are set to a maximum density value (such as 255).
insideCutOff
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.
,
"bold"
"bolditalic"
or
"dark"
- An array of CSM settings for the specified font. Each
array can contain multiple entries that specify CSM
TextRenderer (flash.text.TextRenderer)
,
"italic"
.
"light"
, and
.
"none"
1249

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF