Sign in to follow this  
Jazcash

Poor text scaling

Recommended Posts

I have a retro-style game with pixel art that I'm scaling up with 

game.scale.setUserScale(2, 2);

And I'm adding some text:

game.add.text(100, 100, "Hello world!", {font: "retrofont", fontSize:24});

But the scaling makes the font appear distorted, as you'd expect. Is there a way to render the text crisp or alternatively scale only certain elements of the game up? Currently I'm thinking of creating a second canvas overlaying the main canvas with default scale and rendering the text on that instead, but it feels hacky and could impact performance? Open to better suggestions.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.