phaser - v4.0.0-rc.4
Preparing search index...
phaser
phaser
GameObjects
MeasureText
Function MeasureText
MeasureText
(
textStyle
:
GameObjects
.
TextStyle
)
:
TextMetrics
Calculates the ascent, descent and fontSize of a given font style.
Parameters
textStyle
:
GameObjects
.
TextStyle
The TextStyle object to measure.
Returns
TextMetrics
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
phaser - v4.0.0-rc.4
Loading...
Calculates the ascent, descent and fontSize of a given font style.