A special replacement for openfl.text.TextFormat that dispatches Event.CHANGE when any of its properties changes, and supports creating a clone with the same properties.

Events:

openfl.events.Event.CHANGE

Dispatched when any property of the TextFormat changes.

Available since

1.0.0

.

Constructor

@:value({ leading : null, indent : null, rightMargin : null, leftMargin : null, align : null, target : null, url : null, underline : null, italic : null, bold : null, color : null, size : null, font : null })new(?font:String, ?size:Int, ?color:Int, ?bold:Bool, ?italic:Bool, ?underline:Bool, ?url:String, ?target:String, ?align:TextFormatAlign, ?leftMargin:Int, ?rightMargin:Int, ?indent:Int, ?leading:Int)

Variables

@:flash.propertyalign:TextFormatAlign

@:flash.propertyblockIndent:Null<Int>

@:flash.propertybold:Null<Bool>

@:flash.propertycolor:Null<Int>

@:flash.propertyfont:String

@:flash.propertyindent:Null<Int>

@:flash.propertyitalic:Null<Bool>

@:flash.propertyleading:Null<Int>

@:flash.propertyleftMargin:Null<Int>

@:flash.propertyrightMargin:Null<Int>

@:flash.propertysize:Null<Int>

@:flash.propertytarget:String

@:flash.propertyunderline:Null<Bool>

@:flash.propertyurl:String

Methods

clone():TextFormat

Creates a copy of the feathers.text.TextFormat object.

Available since

1.0.0

.

toSimpleTextFormat():TextFormat

Returns an openfl.text.TextFormat object.