The AntiAliasType class provides values for anti-aliasing in the openfl.text.TextField class.


The AutoCapitalize class defines constants for the autoCapitalize property of the StageText class.


The Font class is used to manage embedded fonts in SWF files. Embedded fonts are represented as a subclass of the Font class. The Font class is currently useful only to find out information about embedded fonts; you cannot alter a font by using this class. You cannot use the Font class to load external fonts, or to create an instance of a Font object by itself. Use the Font class as an abstract base class.


The FontStyle class provides values for the TextRenderer class.


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


The GridFitType class defines values for grid fitting in the TextField class.


The ReturnKeyLabel class defines the values to use for the returnKeyLabel property of the StageText class.


The SoftKeyboardType class defines the types of soft keyboards for mobile applications. You select the keyboard type with the softKeyboardType property on the text input control.


The StageText class is used to present the user with a native text input field.


The StageTextClearButtonMode class defines the values to use for the clearButtonMode property of the StageText class.


The StageTextInitOptions class defines the options available for initializing a StageText object.


This class represents StaticText objects on the display list. You cannot create a StaticText object using ActionScript. Only the authoring tool can create a StaticText object. An attempt to create a new StaticText object generates an ArgumentError. To create a reference to an existing static text field in ActionScript 3.0, you can iterate over the items in the display list. For example, the following snippet checks to see if the display list contains a static text field and assigns the field to a variable:


The StyleSheet class lets you create a StyleSheet object that contains text formatting rules for font size, color, and other styles. You can then apply styles defined by a style sheet to a TextField object that contains HTML- or XML-formatted text. The text in the TextField object is automatically formatted according to the tag styles defined by the StyleSheet object. You can use text styles to define new formatting tags, redefine built-in HTML tags, or create style classes that you can apply to certain HTML tags.


The TextField class is used to create display objects for text display and input. You can use the TextField class to perform low-level text rendering. However, in Flex, you typically use the Label, Text, TextArea, and TextInput controls to process text. <ph outputclass="flashonly">You can give a text field an instance name in the Property inspector and use the methods and properties of the TextField class to manipulate it with ActionScript. TextField instance names are displayed in the Movie Explorer and in the Insert Target Path dialog box in the Actions panel.


The TextFieldAutoSize class is an enumeration of constant values used in setting the autoSize property of the TextField class.


The TextFieldType class is an enumeration of constant values used in setting the type property of the TextField class.


The TextFormat class represents character formatting information. Use the TextFormat class to create specific text formatting for text fields. You can apply text formatting to both static and dynamic text fields. The properties of the TextFormat class apply to device and embedded fonts. However, for embedded fonts, bold and italic text actually require specific fonts. If you want to display bold or italic text with an embedded font, you need to embed the bold and italic variations of that font.


The TextFormatAlign class provides values for text alignment in the TextFormat class.


The TextLineMetrics class contains information about the text position and measurements of a line of text within a text field. All measurements are in pixels. Objects of this class are returned by the openfl.text.TextField.getLineMetrics() method. For measurements related to the text field containing the line of text (for example, the "Text Field height" measurement in the diagram), see openfl.text.TextField.