Jump to content

Pixel Perfect Fonts?


Colbydude
 Share

Recommended Posts

Hey all,

So I'm wanting using a web font in my Phaser project, but I'm noticing that when using the font in-game, it's automatically applying some sort of smoothing? When rendering straight onto the page outside of the game, the font comes out perfectly crisp when using "-webkit-font-smoothing: none;" See the attachment.

I took a look into the Text game object and I'm seeing a "resolution" member, though doing "textObject.resolution = <number>;" doesn't seem to have any effect. Not sure if I need to run an update once I do that though. Do have other options available?

Secondly, how do I go about setting the global/default font so that every text object will use the font I specify?

 

Screen-Shot-2018-04-04-at-10.49.38-PM.png

Link to comment
Share on other sites

  • 2 years later...
 Share

  • Recently Browsing   0 members

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