• 2D
  • Dynamic Fonts Are Antialiased Problem

Hi,

I was following a tutorial which involved some text, it has Dynamic Fonts from a .TTF file. All works apart from the anti-aliasing can't be switched off, not ideal for a low-res retro game.

Is there a reason why the smoothing can't be switched off? Should I instead use bitmap fonts? On the latter, can anyone recommend a good up-to-date tutorial for creating bitmap fonts?

Cheers!

Does the DynamicFont's size match the size the font designed for? It should be a multiple of the font's "design" size, otherwise, it's going to look blurry as in the screenshot.

That said, in 3.1 beta, you can disable font anti-aliasing in DynamicFontData resources (make sure to save it as a .tres file afterwards, otherwise the anti-aliasing setting won't be preserved). It may solve your issue with the font being blurry, but it can also result in poor-looking fonts.

Thanks for the info, yes anti-aliasing can be switched off in 3.1. In version 3.0 it's always ant-aliased with Dynamic Fonts whatever the size as far as I'm aware - so I'm moving to Godot 3.1 Beta, it's the push I needed I guess.

Well I thought all was well in 3.1 beta 3, but it isn't quite there!

Even though you can turn off Anti-aliasing on the Dynamic font, it only appears to affect the editor/stage window. When you run the game, it comes back! Bug? Not sure :(

Here's a screenshot...

Can anyone else find a solution, or perhaps I should report it?

Edit: After a little more experimenting, I've noticed that some fonts have the issue and some don't.

a year later

Well, I got the same issue, too. Found that Keeping the Local to Scene On in DynamitFont's Setting, will sort out the problem.

4 days later

@wayne You can also save the underlying DynamicFontData (not the DynamicFont!) to a .tres file to preserve the metadata.