EasyManua.ls Logo

MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH - Page 417

MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
830 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
About text layout and formatting 417
Using a grid fit type
When you use advanced anti-aliasing on a text field, three types of grid fitting are available:
none Specifies no grid fitting. Horizontal and vertical lines in the glyphs are not forced to
the pixel grid. This setting is usually good for animation and for large font sizes.
pixel Specifies that strong horizontal and vertical lines are fit to the pixel grid. This setting
works only for left-aligned text fields. This setting generally provides the best legibility for
left-aligned text.
subpixel Specifies that strong horizontal and vertical lines are fit to the subpixel grid on an
LCD monitor. The subpixel setting is generally good for right-aligned and center-aligned
dynamic text, and it is sometimes a useful trade-off for animation versus text quality.
The following example shows how to set a grid fit type on a text field by using ActionScript.
To set a grid fit type on a text field:
1. Create a new Flash document and save it as gridfittype.fla.
2. Select New Font from the pop-up menu in the upper-right corner of the Library panel.
3. Select Arial font from the Font drop-down menu and set the font size to 10 points.
4. Type the font name Arial-10 (embedded) in the Name text box and click OK.
5. Right-click the font symbol in the library and select Linkage to open the Linkage Properties
dialog box.
6. Set the linkage identifier to Arial-10, and then select the Export for ActionScript and
Export in First Frame check boxes.
7. Click OK.

Table of Contents

Related product manuals