How do I disable texture filtering / anti-aliasing for label text in Godot?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By kowid51384

How do I disable texture filtering / anti-aliasing for label text in Godot? I can re-import sprites to make them nice and crispy, but the text is still all blurry. Or if impossible for label text, what are some alternatives?

Are you using the default font for the engine? If you’re using a different font, have you changed the settings for the font?

Ertain | 2022-01-30 09:20

I was using the default font yeah, creating a new font, and then loading a font as a resource made the filtering/aliasing go away, thanks.

kowid51384 | 2022-02-03 06:39

:bust_in_silhouette: Reply From: rossunger

I would recommend using a dynamic font, and increasing it’s size. It looks here like you’re either trying to scale the font, or you’re just zoomed in too much.

If you’re looking for a pixel art type of effect you should look into project settings, there’s a few settings there that are relevant (like anti-aliasing and all that).

I am zoomed in a lot for emphasis, yes, but the issue wasn’t that the filtering/aliasing was “too blurry”, but rather I didn’t want filtering/aliasing AT ALL. Anyways, thanks, it seems that when creating a new bitmap font or dynamic font, and loading an .otf/.ttf font for the font data, the filtering/aliasing goes away. There appears a “use filter” option that’s off by default when doing that.

I couldn’t find anything within the project settings that I think would help except maybe “gpu pixel snap” under General\Rendering\2d, which sounds like it could be useful for moving text (if I’m correctly understanding what that option does), thanks.

kowid51384 | 2022-02-03 06:38