| Package | flash.text |
| Class | public final class FontType |
| Inheritance | FontType Object |
"embedded"
and "device" for the fontType property of the flash.text.Font class.
See also
| flash.text.Font.fontType |
| Property | Defined by | ||
|---|---|---|---|
| DEVICE : String = "device" [static]
Indicates that this is a device font.
| FontType | ||
| EMBEDDED : String = "embedded" [static]
Indicates that this is an embedded font.
| FontType | ||
public static const DEVICE:String = "device"
Using device fonts results in a smaller movie size, since font data is not included in the file. Device fonts are often a good choice for displaying text at small point sizes, as anti-aliased text can be blurry at small sizes. Device fonts are also a good choice for large blocks of text, such as scrolling text.
Text fields that use device fonts may not display the same across different systems and platforms, because Flash Player uses fonts installed on the system. For the same reason, device fonts will not anti-alias and may appear jagged at large point sizes.
See also| TextField.embedFonts |
public static const EMBEDDED:String = "embedded"
Text fields that use embedded fonts will always display
in the chosen font, regardless of whether that font is installed
on the playback system. Also, text fields that use embedded fonts
will always be anti-aliased (smoothed) by the Flash Player, and you
also can select the amount of anti-aliasing you want with the
TextField.antiAliasType property.
One drawback to embedded fonts is that they increase the size of your SWF file.
See also| TextField.embedFonts |
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/labs/flashauthoringpreview/flash/text/FontType.html