My font in the game window is having terrible distortions, tried multiple of advice from other posts, tutorials and etc but nothing worked.

Godot Version 4.6.1

Question

Ok so I am using an 8 bit operator font but the game is distorting it and no matter what i do in the text settings, it is not fixing it.

If you share code, please wrap it inside three backticks or replace the code in the next block:

func _ready() -> void:
    print("hello world")

@thesnesmaster made their own fonts and might have some ideas for you.

I would also recommend downloading Kenney Fonts, which are free and CC0 licensed, and see if the problem persists with them. There’s a few that look similar to what you’re using.

Even if you don’t want to use Kenney’s fonts, seeing if the problem persists will likely help troubleshoot your chosen font.

Where exactly did you obtain the font? What is your game’s resolution?

I tried that font (PixelOperator8-Bold.ttf) with Godot 4.7 beta4 but couldn’t recreate the problem.

Make a minimal test project. Just a Node2D for the root node and a Label to test the font. No CanvasLayers, no font variations, no changes to project’s default settings. Only change to the Label should be the font (and text of course). What happens?

Game viewport should be 640, and 360. I got the font from 1001freefonts I think.

It seems like it distorts less, even if I am using smaller font sizes, but I don’t know the problem in my main. My settings should be optimized for pixel art, I have it set to nearest in the main game and not linear, even played around setting things back and forth but it does not work. I did took a bunch of screenshots but it says new users could only have one embedded item, so I will send a screen shot of the project settings I changed so far. Thanks for helping me through this, have no idea why the text is acting so weird.

test Biancafont with your project and see if it distorts,

Not as an alternative unless you want to use it, but it would help to know whether it is the project or the font, i am thinking it is the font

Tested it in the menu, it seems to be fine with size 24 but distorts with size 18. Used the rocket regular.

image

is that font low resolution?

Aight got font in though it looks strange in the viewport. Does not seem to distort too much in the game though but it does a little.

I don’t think so? I have the font set at 18 which should be allowed according to the font file.

I see…
I made Biancafont as a simple, low resolution font, i would try it because fonts made from SVGs, etc. do not work well for me at low resolution and i am 99% certain it would fix your issues.

Most fonts that you will download are at such a high resolution that, even if it looks like a pixel font, it will distort on projects that are low resolution, despite whatever it says is supported.

Interesting, is there a way to check if fonts are high resolution or not? Also I am not sure if the font is supposed to look like this rendered or something is messing with it.

No, usually you can just tell if it is from an SVG or not based off of whether it blurs at low res or otherwise, and from what it seems, i think you are using the original version of my font, check releases, the latest is a lot better—actually also if you have a pixel art editor, e.g. pixelorama, then you can edit the font to your liking.

Aight, I think I used this version that says 2 months ago.

Check the releases tab, actually i will make it easier for you: Releases · The-Super-Famicom-Enthusiest/BiancaFont-SNES-Style-EN-JP-Font · GitHub

Thank you, this one works slightly better though there is a weird gradient thing in my game and the distortion is small. Is there something wrong in my settings?

you have an image editing software?

none that I am aware of, this is just in the engine itself.

ok then, i will just push a new version to Biancafont then.