Jump to content

Text fontSize doesn't do anything


ashes999
 Share

Recommended Posts

Following the usual nine-part Phaser tutorial on making a platformer, I see code like:

scoreText = game.add.text(16, 16, 'score: 0', { fontSize: '32px', fill: '#000' });

Changing the fontSize property doesn't do anything. I tried multiple values (8px, 72px, etc.) as well as different types ('72px', '72pt', '72', 72, etc.) -- all to no avail.

 

Am I doing something wrong?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...