Returns an object containing dimensions of the Text object.
name | type | description |
---|---|---|
text | Phaser.GameObjects.Text |
The Text object to calculate the size from. |
size | Phaser.Types.GameObjects.Text.TextMetrics |
The Text metrics to use when calculating the size. |
lines | Array.<string> |
The lines of text to calculate the size from. |
An object containing dimensions of the Text object.