Font is pixelized when project size is small

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

Hello! I have a 2D pixel-styled project with size settings 240x135.
I created a Control node scene with Label inside it. In Label I go to ‘Theme Overrides’ > Fonts > Font, selecting ‘New DynamicFont’, go to Font > ‘Font Data’ and quick load a TTF font:
enter image description here
With settings above the result is this:
enter image description here
As you can see, the font have semi-transparent pixels around it. I am struggling to get rid of it. If I try to edit anti-aliasing and hinting options, the issue persists.
As a workaround I set the scale (x; y) to (0.1; 0.1) and the font size to a big value like 160. It works, but cause problems and is unhandy. Here is the temporary fix screenshot:
enter image description here
(letter overlap is not an issue here)
Please help, how to achieve second result without changing scale?

Hey,
I have the same problem.
In the editor the fonts look crisp and sharp.
However, when I start running a scene in debug, the fonts get extra semi-visible pixel around the letters.

Project Settings: window size: 384 x 216 test size: 1536 x 864

I assume when the window gets scaled for testing these extra pixels occur.

Can I get rid of them?

I have filtering and anti-aliasing off.

Lempf | 2022-12-03 19:21

:bust_in_silhouette: Reply From: rossunger

You need to disable anti-aliasing in the font data!

Strangely, it worked after some reimport manipulations. Thank you very much!

web.user | 2022-01-31 09:13