openfl.text
Here are some selections from the OpenFL Developer's Guide to help you get started with the openfl.text package:
.. | |
---|---|
engine | |
AntiAliasType | The AntiAliasType class provides values for anti-aliasing in the openfl.text.TextField class. |
AutoCapitalize | The AutoCapitalize class defines constants for the |
Font | 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. |
FontStyle | The FontStyle class provides values for the TextRenderer class. |
FontType | The FontType class contains the enumerated constants
|
GridFitType | The GridFitType class defines values for grid fitting in the TextField class. |
ReturnKeyLabel | The ReturnKeyLabel class defines the values to use for the |
SoftKeyboardType | The SoftKeyboardType class defines the types of soft keyboards for mobile
applications. You select the keyboard type with the |
StageText | The StageText class is used to present the user with a native text input field. |
StageTextClearButtonMode | The StageTextClearButtonMode class defines the values to use for the
|
StageTextInitOptions | The StageTextInitOptions class defines the options available for initializing a StageText object. |
StaticText | This class represents StaticText objects on the display list. You cannot
create a StaticText object using Haxe code. Only the authoring tool can
create a StaticText object. An attempt to create a new StaticText object
generates an |
StyleSheet | 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. |
TextField | The TextField class is used to create display objects for text display and
input. |
TextFieldAutoSize | The TextFieldAutoSize class is an enumeration of constant values used in
setting the |
TextFieldType | The TextFieldType class is an enumeration of constant values used in
setting the |
TextFormat | 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. |
TextFormatAlign | The TextFormatAlign class provides values for text alignment in the TextFormat class. |
TextLineMetrics | 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
|