Godot does not recognize TTF as a font file

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

I was trying to go through the 2D tutorial for the Dodge the Creeps, and I got to the step where it explained how to set the font for the game labels, and button.

It won’t let me load the supplied TTF file because Godot claims that only .font, .res, and .tres files are valid.

TTF files definitely work fine in Godot, so I’d guess you’re doing something wrong. Related, I just ran through the tutorial steps where the TTF font is added to the HUD and it seems to work as described (also using v3.5.1).

Have you double-checked your steps?

jgodfrey | 2023-02-14 21:38

You are correct. The UI there just seems inscrutably awkward and the picture in the text appears to be out of date.

dmclean62 | 2023-02-14 21:47

Yeah, agreed. The image doesn’t match the 3.5.1 build. And, also agreed, this is an area where Godot’s UI is bit awkward (select something in a drop-down then select that thing again to get an entirely new set of options).

jgodfrey | 2023-02-14 21:57

:bust_in_silhouette: Reply From: jgodfrey

Ah, after the testing I mentioned above, I think I know what you did wrong. You must have inadvertantly selected New Bitmap Font instead of New Dynamic Font when selecting the new font type. Change that and the TTF will work.

1 Like