Metafaux Posted October 17, 2018 Share Posted October 17, 2018 I am updating a web game from Pixi 3 to Pixi 4, and upon doing so, all the BitmapText broke on ultra-high definition screens (e.g. retina displays, MacBook, Surface Pro). The text looks completely normal on regular HD/1080 displays. The fonts are created through BMFont, set to export XML & PNG. In the game, when a UHD screen resolution is detected, it loads a larger bitmap file (e.g. Roboto48.fnt instead of Roboto24.fnt). After loading, BitmapText elements are instantiated like this: var scoreText = new PIXI.extras.BitmapText("Score: 0", {font: "24px Roboto"}); When I run the game with Pixi 3, the text looks fine again. I can't find any other examples of this or support questions dealing with this problem. Has anyone encountered this or found a fix? ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
Metafaux Posted October 17, 2018 Author Share Posted October 17, 2018 This has been filed as an issue at https://github.com/pixijs/pixi.js/issues/5171 ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.