| Package | ch.capi.display.text |
| Class | public class AbstractFont |
| Inheritance | AbstractFont flash.text.Font |
Font that will be
managed by the FontManager class.
See also
| Property | Defined by | ||
|---|---|---|---|
| linkageName : String
Defines the linkage name.
| AbstractFont | ||
| textFormat : TextFormat
Defines the
TextFormat. | AbstractFont | ||
| Method | Defined 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 | ||
| linkageName | property |
linkageName:String [read-write]Defines the linkage name.
Implementation public function get linkageName():String
public function set linkageName(value:String):void
| textFormat | property |
textFormat:TextFormat [read-write]
Defines the TextFormat.
public function get textFormat():TextFormat
public function set textFormat(value:TextFormat):void
| AbstractFont | () | constructor |
public function AbstractFont(linkageName:String = null)
Creates a new AbstractFont object.
linkageName:String (default = null) — The linkage name.
|
| applyFormat | () | method |
public function applyFormat(field:TextField, allProperties:Boolean = true, setAsDefault:Boolean = true):void
Applies the TextFormat to the specified TextField.
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.
TextFormat — A copy of the textFormat property.
|