Try scaling the font according to the original size.
Every pixel font have an original size (example: 8px). So, when scaling the font do it to a factor of its original size (example: 8px or 16px or 32px or 64px).
JavaScript workaround: After exporting your game, go to the export folder and open the file “Extensions/TextObject/textruntimeobject-pixi-renderer.js”
Approximately at line 37, search this:
style.fontSize = this._object._characterSize;
And replace it with:
style.fontSize = this._object._characterSize * 4;
this._text.scale.x = 0.25;
this._text.scale.y = 0.25;
(i.e., make the font 4 times bigger, but downscale the text object 4 times)
I have noticed the blurry text in my pixel art games too. @Lizard-13: Are there any drawbacks to this? If no, we could add it to the engine itself. Or maybe as an export option to set the scale/resolution for texts.
I realise I am bringing up an old topic that has been somewhat resolved with bitmap text. I have been working on a game that replaces some of the text with user input text, which as far as I can gather can’t be used with pixel text. I got Lizard-13’s Javascript workaround working well but a few months ago the pixi-renderer extension was changed and the textruntimeobject-pixi-renderer.js file now looks completely different. I tried figuring out where in the jumble to change the Javascript but my knowledge of Javascript is too limited to make any solutions I tried work.
Lizard-13, If you are able please would you help? I would be so grateful if you would put up an updated instruction on setting up the textruntimeobject-pixi-renderer.js to make the workaround work.