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

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.