Skip to content

Commit 8e1b5e7

Browse files
committed
Allow to pass font in TextStyle
1 parent 0cca001 commit 8e1b5e7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/gameobjects/text/typedefs/TextStyle.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @property {string} [fontFamily='Courier'] - The font the Text object will render with. This is a Canvas style font string.
88
* @property {string} [fontSize='16px'] - The font size, as a CSS size string.
99
* @property {string} [fontStyle] - Any addition font styles, such as 'strong'.
10+
* @property {string} [font] - The font family or font settings to set. Overrides the other font settings.
1011
* @property {string} [backgroundColor] - A solid fill color that is rendered behind the Text object. Given as a CSS string color such as `#ff0`.
1112
* @property {string} [color='#fff'] - The color the Text is drawn in. Given as a CSS string color such as `#fff` or `rgb()`.
1213
* @property {string} [stroke='#fff'] - The color used to stroke the Text if the `strokeThickness` property is greater than zero.

0 commit comments

Comments
 (0)