03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

For the gridFitType property, you can use the following string values:<br />

String value Description<br />

"none" Specifies no grid fitting.<br />

Horizontal <strong>and</strong> vertical lines<br />

in the glyphs are not forced<br />

to the pixel grid. This<br />

setting is usually good for<br />

animation or for large font<br />

sizes.<br />

"pixel" Specifies that strong<br />

horizontal <strong>and</strong> vertical lines<br />

are fit to the pixel grid. This<br />

setting works only for leftaligned<br />

text fields. To use<br />

this setting, the<br />

antiAliasType property of<br />

the text field must be set to<br />

"advanced". This setting<br />

generally provides the best<br />

legibility for left-aligned<br />

text.<br />

"subpixel" Specifies that strong<br />

horizontal <strong>and</strong> vertical lines<br />

are fit to the subpixel grid<br />

on an LCD monitor. To use<br />

this setting, the<br />

antiAliasType property of<br />

the text field must be set to<br />

"advanced". The "subpixel"<br />

setting is often good for<br />

right-aligned or centered<br />

dynamic text, <strong>and</strong> it is<br />

sometimes a useful tradeoff<br />

for animation versus<br />

text quality.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 8<br />

Example<br />

This example shows three text fields that use the different gridFitType settings. It assumes<br />

that you have a font embedded in the Library with the linkage identifier set to "Times-12".<br />

To embed the font, follow these steps:<br />

TextField 1203

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!