Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Howdy! Thanks for sharing this great plugin. I've run into an issue with a few fonts that result in certain characters, specifically lower and uppercase 'U', being rendered with a gradient effect or cut off completely. Pixel snapping enabled, font size 12px. Unsure if it's easily fixable, just wanted to bring it to your attention.

I've tried a few different fonts with the same result. Font below is zpix


Are you using the newest version? I thought I fixed this little bug of the browser. Have you tried different devices to see if they all have the issue? Because I don't have this using zpix.

(1 edit)

Yes, I am on the latest version (Tried both "New" and "Passive Mode"). I've tested on macOS and Windows, both with and without plugins, and also on a completely new project. All tests result in the same bug.

So you have tried the default play test without upgraded nw.js? That is quite Strange because I don't have this problem. Do you test it on the same computer?

I have not touched nw.js, just nw.js v0.48.4 and core script 1.9.0 on two different computers, one macOS and one Windows 11. Is upgrading nw.js a requirement for this plugin?

No it is not required. Just I can't reproduce your problem (font size = 12 and with zpix.ttf). Can you make a small demo for me to test with?

For sure! Appreciate you taking a look. I think what I figured out is that, at my 320x180 game resolution and 1x font scale, the bug appears. But on a new project with the font at 2x scale, the bug is not there. Anywho, here's a link to my project: https://cilerba.com/fontbug.zip

Got it. You can edit line 646 of the plugin, change 17 to something bigger for example 18, should fix your problem.

for (let i = 0; i < 18; i++) { //dummy commands, fix gpu glitch

This problem should also be gone if you upgrade nw.js to the newest version. Seems to be a glitch of the browser when drawing very small shapes.

You legend! Thanks so much for helping figure this out. :]