Pixel font filtering (SOLVED)

What should I be modifying to get crisp pixel-perfect fonts? I currently have a tiny pixel font imported to Defold and hooked up to the GUI system, but it renders as such:

These are the import settings:

I’m using the britzl suggested modifcations to the render script to constrain/scale the view projection (from this thread) if it helps.

1 Like

If I recall correctly, the fonts currently don’t abide to the game.project setting for texture filtering…

However, you should be able to just make a copy the font.material in /builtins/fonts/ and add a sampler called “texture” with filtering set to nearest, like this:

Then use this material in your own font, instead of the default one! :slight_smile:

5 Likes

Thanks sven! Worked perfectly!

1 Like