frenetikm Posted January 13, 2016 Share Posted January 13, 2016 Hi, I have that kind of code : this.add.text(0, 0, 'text', { font: '36px Arial', fill: '#FFFFFF' }); I would like to know how to have fonts fallbacks like in css: font-family: Arial, Helvetica, sans-serif; It seems to be possible with the font property : Quote 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. But I haven't seen an example of multiple CSS font families. If anyone know how to do, could you show me an example of code ? Link to comment Share on other sites More sharing options...
drhayes Posted January 13, 2016 Share Posted January 13, 2016 I haven't tried it, but did you try: this.add.text(0, 0, 'text', { font: '36px Gill Sans, Arial, sans-serif', fill: '#ffffff' }); Link to comment Share on other sites More sharing options...
Recommended Posts