public static function getBitmapTextSize(textField:TextField, rotation:Number):Object
Returns the dimensions of a text field if rotated.
Parameters
| textField:TextField — The text field to be used
|
|
| rotation:Number — The rotation to be applied
|
Returns
public static function getTextHeight(textValue:String, tf:TextFormat, rotation:Number = 0):Number
Returns the potential height of a string when rendered in a text field. Takes into account
the TextFormat
settings and the rotation.
Parameters
| textValue:String — The string that will be used.
|
|
| tf:TextFormat — The TextFormat object that will be applied.
|
|
| rotation:Number (default = 0 ) — The rotation that will be applied
|
Returns
public static function getTextWidth(textValue:String, tf:TextFormat, rotation:Number = 0):Number
Returns the potential width of a string when rendered in a text field. Takes into account
the TextFormat
settings and the rotation.
Parameters
| textValue:String — The string that will be used.
|
|
| tf:TextFormat — The TextFormat object that will be applied.
|
|
| rotation:Number (default = 0 ) — The rotation that will be applied
|
Returns