Text#cssFont

cssFont : string

Change the font used.

This is equivalent of the font property specified to setStyle, except
that unlike using setStyle this will not change any current font fill/color settings.

The CSS font string can also be individually altered with the font, fontSize, fontWeight, fontStyle, and fontVariant properties.

Source code: gameobjects/Text.js (Line 1682)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.