HTML5缓存文本实现,用于解决HTML5平台字体消耗问题

Constructor

new ()

Variables

bitmapData:BitmapData

@:value("")drawText:String = ""

@:value(0)drawTime:Int = 0

@:value(0)height:Int = 0

id:String

@:value(false)isZh:Bool = false

@:value(1)line:Int = 1

@:value(false)mouseEnabled:Bool = false

@:value(false)selectable:Bool = false

text:String

@:value(0)width:Int = 0

@:value(false)wordWrap:Bool = false

Methods

dispose ():Void

@:has_untypeddisposeSelf ():Void

@:value({ isEmoj : false })getCharBoundaries (index:Int, isEmoj:Bool = false):Rectangle

setTextFormat (format:TextFormat):Void