408
Working with Text and Strings
Font rendering options in Flash
Five different font rendering options are available in Flash 8. To select an option, select the
text field and open the Property inspector. Select an option from the Font rendering method
pop-up menu.
Device Fonts
Produces a smaller SWF file size. The option renders using fonts that are
currently installed on the end user’s computer.
Bitmap Text (no anti-alias)
Produces sharp text edges, without anti-aliasing. This option
produces a larger SWF file size, because font outlines are included in the SWF file.
Anti-Alias for Animation
Produces anti-alias text that animates smoothly. The text also
animates faster in some situations, because alignment and anti-alias are not applied while the
text animates. You do not see a performance improvement when you use big fonts with lots of
letters, or scaled fonts. This option produces a larger SWF file size, because font outlines are
included in the SWF file.
Anti-Alias for Readability
The advanced anti-aliasing engine is used for this option. This
option offers the highest-quality text, with the most legible text. This option produces the
largest SWF file size, because it includes font outlines, and also special anti-aliasing
information.
Custom Anti-Alias
The same as Anti-Alias for Readability, but you can visually manipulate
the anti-aliasing parameters to produce a specific appearance. This option is useful to produce
the best possible appearance for new or uncommon fonts.
For an example of how to use anti-alias with ActionScript, see
“Setting anti-alias with
ActionScript” on page 409
.
About continuous stroke modulation
The FlashType font rendering technology exploits the inherent properties of distance fields to
provide continuos stroke modulation (CSM); for example, continuous modulation of both
the stroke weight and the edge sharpness of the text. CSM uses two rendering parameters to
control the mapping of adaptively sampled distance field (ADF) distances to glyph density
values. Optimal values for these parameters are highly subjective; they can depend on user
preferences, lighting conditions, display properties, typeface, foreground and background
colors, and point size. The function that maps ADF distances to density values has an outside
cutoff, below which values are set to 0, and an inside cutoff, above which values are set to a
maximum density value, such as 255.
Содержание FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Страница 1: ...Learning ActionScript 2 0 in Flash...
Страница 8: ...8 Contents...
Страница 18: ...18 Introduction...
Страница 30: ...30 What s New in Flash 8 ActionScript...
Страница 66: ...66 Writing and Editing ActionScript 2 0...
Страница 328: ...328 Interfaces...
Страница 350: ...350 Handling Events...
Страница 590: ...590 Creating Interaction with ActionScript...
Страница 710: ...710 Understanding Security...
Страница 730: ...730 Debugging Applications...
Страница 780: ...780 Deprecated Flash 4 operators...
Страница 830: ...830 Index...