diff --git a/src/gameobjects/text/static/Text.js b/src/gameobjects/text/static/Text.js index e2036fc29..5eeb9baec 100644 --- a/src/gameobjects/text/static/Text.js +++ b/src/gameobjects/text/static/Text.js @@ -486,6 +486,8 @@ var Text = new Class({ { if (text === undefined) { text = this.text; } + this.style.syncFont(this.canvas, this.context); + var wrappedLines = this.runWordWrap(text); return wrappedLines.split(this.splitRegExp); diff --git a/src/loader/index.js b/src/loader/index.js index 5cbc9b4a0..e5795b3a3 100644 --- a/src/loader/index.js +++ b/src/loader/index.js @@ -15,6 +15,7 @@ var Loader = { FileTypes: require('./filetypes'), + CONST: require('./const'), File: require('./File'), FileTypesManager: require('./FileTypesManager'), GetURL: require('./GetURL'),