Pixel font (.TTF) doesn't display right

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

I’m trying to code a menu in Godot, but I’m having trouble using the Pixel Mplus 12 font on Godot. When I use it, even if I set the correct pixel size, it shows some kind of shadowy stuff under the text, and I want to remove it.

probably created the shadows somewhere in the properties, still looks cool tho…

zen3001 | 2021-02-05 16:50

It’s not a shadow. You can see the weirdness in the comma.

If it helps, the font is a DynamicFont.

HaleyHalcyon | 2021-02-06 09:44

:bust_in_silhouette: Reply From: HaleyHalcyon

I fixed the issue by creating a DynamicFontData first.

  1. Create a new DynamicFontData
  2. Load the TTF font from “Font Path”
  3. Turn off “Antialiased” in the DynamicFontData
  4. Save the DynamicFontData
  5. Create a new DynamicFont
  6. Load the DynamicFontData into the DynamicFont from “Font > Font Data”
  7. Save the DynamicFont
  8. Apply the DynamicFont to the Node

1.) How and where can I make a DynamicFontData?

2.) Can I also create and setup the DynamicFontData and DynamicFont with a .gd script?

BekoSan19 | 2022-07-15 15:02