Text#font

font : string

Change the font family that the text will be rendered in, such as 'Arial'.

Multiple CSS font families and generic fallbacks can be specified as long as
CSS font-family rules are followed.

To change the entire font string use cssFont instead: eg. text.cssFont = 'bold 20pt Arial'.

Source code: gameobjects/Text.js (Line 1708)
doc_phaser
2017-02-14 11:13:51
Comments
Leave a Comment

Please login to continue.