mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
Merge pull request #5258 from khasanovbi/font
Allow to pass font in TextStyle
This commit is contained in:
commit
c98a43c9d4
1 changed files with 1 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue