Packageflash.text
Classpublic final class FontType
InheritanceFontType Inheritance Object

The FontType class contains the enumerated constants of "embedded" and "device" for the fontType property of the flash.text.Font class.

See also
flash.text.Font.fontType


Public Constants
 PropertyDefined 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 Properties
Hide Inherited Public Properties
Show Inherited Public Properties
 PropertyDefined by
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods
 FunctionDefined by
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Constant detail
DEVICE constant
public static const DEVICE:String = "device"

Indicates that this is a device font. Flash Player uses fonts installed on the system running the SWF file.

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
EMBEDDED constant
public static const EMBEDDED:String = "embedded"

Indicates that this is an embedded font. Font outlines are embedded in the published SWF file.

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