Phaser API Documentation

  Version: 

Member of: Phaser.GameObjects

<static> MeasureText(textStyle)

Description:

Calculates the ascent, descent and fontSize of a given font style.

Parameters:

name type description
textStyle Phaser.GameObjects.TextStyle

The TextStyle object to measure.

Returns:
Description:

An object containing the ascent, descent and fontSize of the TextStyle.

Since: 3.0.0