Jump to content

Phaser text auto resolution broken?


Recommended Posts

I'm not sure if it's a bug or if I'm not doing something right but the Phaser text resolution isn't automatically adjusting. I saw the example of high dpi and low dpi text https://phaser.io/examples/v2/text/text-resolution which purposely sets the resolution of the lower one to "1". My MacBook has a 2880 x 1800 display and it always sets the resolution to "1". I manually adjusted it and it's really crisp at "6". Why won't it scale automatically? On my iPad it won't work either. The game is set to scale the width and height to the browser window. Please help!


Link to comment
Share on other sites

Not sure exactly what you mean by 'automatically adjusting'.  But the example you referenced on a retina display will show a nice crisp 'High DPI Text' and a fuzzier 'Low DPI Text'.  The default resolution is set to window.devicePixelRatio in the game config (=2 on retina display).

The overall crispness will depend on the resolution setting and the amount of canvas scaling, nothing is automatic you have to set things how you want them.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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