Packagestarling.text
Interfacepublic interface ITextCompositor
Implementors BitmapFont

A text compositor arranges letters for Starling's TextField.



Public Methods
 MethodDefined By
  
clearMeshBatch(meshBatch:MeshBatch):void
Clears the MeshBatch (filled by the same class) and disposes any resources that are no longer needed.
ITextCompositor
  
fillMeshBatch(meshBatch:MeshBatch, width:Number, height:Number, text:String, format:TextFormat, options:TextOptions = null):void
Draws the given text into a MeshBatch, using the supplied format and options.
ITextCompositor
Method Detail
clearMeshBatch()method
public function clearMeshBatch(meshBatch:MeshBatch):void

Clears the MeshBatch (filled by the same class) and disposes any resources that are no longer needed.

Parameters

meshBatch:MeshBatch

fillMeshBatch()method 
public function fillMeshBatch(meshBatch:MeshBatch, width:Number, height:Number, text:String, format:TextFormat, options:TextOptions = null):void

Draws the given text into a MeshBatch, using the supplied format and options.

Parameters

meshBatch:MeshBatch
 
width:Number
 
height:Number
 
text:String
 
format:TextFormat
 
options:TextOptions (default = null)