From 8e1b5e757d69056d832af186fc6fad66e8517e6c Mon Sep 17 00:00:00 2001 From: Bulat Khasanov Date: Sun, 9 Aug 2020 23:31:50 +0300 Subject: [PATCH] Allow to pass font in TextStyle --- src/gameobjects/text/typedefs/TextStyle.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gameobjects/text/typedefs/TextStyle.js b/src/gameobjects/text/typedefs/TextStyle.js index 7a496fdd0..d7fc5e526 100644 --- a/src/gameobjects/text/typedefs/TextStyle.js +++ b/src/gameobjects/text/typedefs/TextStyle.js @@ -7,6 +7,7 @@ * @property {string} [fontFamily='Courier'] - The font the Text object will render with. This is a Canvas style font string. * @property {string} [fontSize='16px'] - The font size, as a CSS size string. * @property {string} [fontStyle] - Any addition font styles, such as 'strong'. + * @property {string} [font] - The font family or font settings to set. Overrides the other font settings. * @property {string} [backgroundColor] - A solid fill color that is rendered behind the Text object. Given as a CSS string color such as `#ff0`. * @property {string} [color='#fff'] - The color the Text is drawn in. Given as a CSS string color such as `#fff` or `rgb()`. * @property {string} [stroke='#fff'] - The color used to stroke the Text if the `strokeThickness` property is greater than zero.