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)

Creates a new TextFormat object with the given arguments.

Available since

1.0.0

.

Variables

@:bindable("change")align:TextFormatAlign

@:bindable("change")blockIndent:Null<Int>

@:bindable("change")bold:Null<Bool>

@:bindable("change")bullet:Null<Bool>

@:bindable("change")color:Null<Int>

@:bindable("change")font:String

@:bindable("change")indent:Null<Int>

@:bindable("change")italic:Null<Bool>

@:bindable("change")kerning:Null<Bool>

@:bindable("change")leading:Null<Int>

@:bindable("change")leftMargin:Null<Int>

@:bindable("change")letterSpacing:Null<Float>

@:bindable("change")rightMargin:Null<Int>

@:bindable("change")size:Null<Int>

@:bindable("change")tabStops:Array<Int>

@:bindable("change")target:String

@:bindable("change")underline:Null<Bool>

@:bindable("change")url: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.

Available since

1.0.0

.