From 97bfe2e7528296483e7725e65e8c0af694db6f72 Mon Sep 17 00:00:00 2001 From: Lukas Jakob Hafner Date: Mon, 5 Mar 2018 16:35:42 +0200 Subject: [PATCH] Quick fix for missing lineSpacing Reads lineSpacing if passed as attribute to `style` within text config. --- src/gameobjects/text/static/Text.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gameobjects/text/static/Text.js b/src/gameobjects/text/static/Text.js index f5088959b..9fd5c3cc8 100644 --- a/src/gameobjects/text/static/Text.js +++ b/src/gameobjects/text/static/Text.js @@ -200,6 +200,11 @@ var Text = new Class({ { this.setPadding(style.padding); } + + if (style && style.lineSpacing) + { + this._lineSpacing = style.lineSpacing; + } this.setText(text);