We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef7c2c6 commit 5cc6b59Copy full SHA for 5cc6b59
1 file changed
src/gameobjects/Text.js
@@ -815,6 +815,8 @@ Phaser.Text.prototype.addFontWeight = function (weight, position) {
815
* @return {array} An array of strings with the pieces of wrapped text.
816
*/
817
Phaser.Text.prototype.precalculateWordWrap = function (text) {
818
+ this.texture.baseTexture.resolution = this._res;
819
+ this.context.font = this.style.font;
820
var wrappedLines = this.runWordWrap(text);
821
return wrappedLines.split(/(?:\r\n|\r|\n)/);
822
};
0 commit comments