Obtains the text width in pixels (INEFFICIENT).
the Phaser.Game instance
the text string to measure width
whether the text is in italic
Obtains the text width in pixels (INEFFICIENT).