Packagestarling.text
Classpublic class TrueTypeCompositor
InheritanceTrueTypeCompositor Inheritance Object
Implements ITextCompositor

This text compositor uses a Flash TextField to render system- or embedded fonts into a texture.

You typically don't have to instantiate this class. It will be used internally by Starling's text fields.



Public Methods
 MethodDefined By
  
Creates a new TrueTypeCompositor instance.
TrueTypeCompositor
  
clearMeshBatch(meshBatch:MeshBatch):void
Clears the MeshBatch (filled by the same class) and disposes any resources that are no longer needed.
TrueTypeCompositor
  
dispose():void
Frees all resources allocated by the compositor.
TrueTypeCompositor
  
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.
TrueTypeCompositor
Constructor Detail
TrueTypeCompositor()Constructor
public function TrueTypeCompositor()

Creates a new TrueTypeCompositor instance.

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

dispose()method 
public function dispose():void

Frees all resources allocated by the compositor.

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)