class flixel.text.FlxTextFormat implements IFlxDestroyable

import flixel.text.FlxText;

Available on all platforms

Instance Fields

var borderColor:Int

The border color if FlxText has a shadow or a border

var end:Int

The end index of the string where the format will be applied

var format:TextFormat

Internal TextFormat

var start:Int

The start index of the string where the format will be applied

function new(?FontColor:Int = null, ?Bold:Bool = null, ?Italic:Bool = null, ?BorderColor:Int = null, ?Start:Int = -1, ?End:Int = -1):Void

FontColor

(Optional) Set the font color. By default, inherits from the default format. *

Bold

(Optional) Set the font to bold. The font must support bold. By default, false. *

Italic

(Optional) Set the font to italics. The font must support italics. Only works in Flash. By default, false. *

BorderColor

(Optional) Set the border color. By default, no border (The color is TRANSPARENT) *

Start

(Default=-1) The start index of the string where the format will be applied. If not set, the format won't be applied. *

End

(Default=-1) The end index of the string where the format will be applied.

function destroy():Void