Godot: Can not load ttf fonts, also can not import

Created on 24 Jul 2017  路  12Comments  路  Source: godotengine/godot

ArchLinux 64b, Godot3.0

Issue description:
When I try to import ttf fonts the editor does not recognize the format, I also can not import the font.

Steps to reproduce:
Try loading dynamic fonts

bug editor

Most helpful comment

The editor recognizes TTF as DynamicFontData as shown by the pink T icon.
image

DynamicFontData can't be used directly and must be added to a DynamicFont first.
image image

All 12 comments

Please fill the issue template. Thanks :)

In 3.0 you don't have to (or can't?) use Importer for fonts. So the issue is that the editor not recognizing ttf.

Edit: Can't reproduce on my Antergos x86_64, Godot 3 042bfab. Have you tried with other font files/formats?

Yes, I tried the formats otf, pfb, afm, none was recognized

Did you close it by mistake, or did you solve the issue?

If the former, could you provide a font file that reproduces the issue?

I don't see a way to use fonts directly either and can't create a bitmap fonts.

The only way I have to use font files is by creating a new dynamic one and then assign the ttf there.

Isn't that how you suppose to do it? TTF files are DynamicFontData. You need to create new DynamicFont and add one or more DynamicFontData(s) to it.

@Noshyaar shouldn't be able to import as bitmap font and set other details like on 2.1?

Probably deprecated in Godot 3? EditorFontImportPlugin is commented out. Not sure if it'll be reimplemented back to the new Import Dock.

A thousand apologies, I closed the subject by mistake. And what I've tried to do is create a dynamic font and then load the font. The editor does not recognize the font format.
And probably in Godot3.0 the fonts work as @Noshyaar explains.

I provide the font
joystix monospace.zip

The editor recognizes TTF as DynamicFontData as shown by the pink T icon.
image

DynamicFontData can't be used directly and must be added to a DynamicFont first.
image image

Would there be any usecase for allowing DynamicFontData to be used directly anywhere?

I think this can be closed? Seems to be explained above by others: You need to use DynamicFont with DynamicFontData, can't use DynamicFontData directly.

yes, the issue is solved!

Was this page helpful?
0 / 5 - 0 ratings