Packagech.capi.display.text
Classpublic class AbstractFont
InheritanceAbstractFont Inheritance flash.text.Font

Root level class for the Font that will be managed by the FontManager class.

See also

FontsManager


Public Properties
 PropertyDefined by
  linkageName : String
Defines the linkage name.
AbstractFont
  textFormat : TextFormat
Defines the TextFormat.
AbstractFont
Public Methods
 MethodDefined by
  
AbstractFont(linkageName:String = null)
Creates a new AbstractFont object.
AbstractFont
  
applyFormat(field:TextField, allProperties:Boolean = true, setAsDefault:Boolean = true):void
Applies the TextFormat to the specified TextField.
AbstractFont
  
getTextFormatCopy():TextFormat
Retrieves a copy of the TextFormat used by this AbstractFont.
AbstractFont
Property detail
linkageNameproperty
linkageName:String  [read-write]

Defines the linkage name.

Implementation
    public function get linkageName():String
    public function set linkageName(value:String):void
textFormatproperty 
textFormat:TextFormat  [read-write]

Defines the TextFormat.

Implementation
    public function get textFormat():TextFormat
    public function set textFormat(value:TextFormat):void
Constructor detail
AbstractFont()constructor
public function AbstractFont(linkageName:String = null)

Creates a new AbstractFont object.

Parameters
linkageName:String (default = null) — The linkage name.
Method detail
applyFormat()method
public function applyFormat(field:TextField, allProperties:Boolean = true, setAsDefault:Boolean = true):void

Applies the TextFormat to the specified TextField.

Parameters
field:TextField — The TextField.
 
allProperties:Boolean (default = true) — Defines if all the properties of the TextFormat must be applied. If not, then only the font is applied.
 
setAsDefault:Boolean (default = true) — Defines if the TextFormat must be set as default for the specified TextField.
getTextFormatCopy()method 
public function getTextFormatCopy():TextFormat

Retrieves a copy of the TextFormat used by this AbstractFont.

Be aware that the tabStops Array is copied by reference which means that if you modify it, the modifications will be also translated to the textFormat property.

Returns
TextFormat — A copy of the textFormat property.