0 votes

Godot Engine V3.0.2.
I have created a Bitmap Font using the bmfont tool. It has created two files: stencil.font (as a text file) and stencil_0.tga. This font should be used with a button.
At the Inspector, opening the button and then CustomFonts, I can see that Godot will accept BitmapFonts. If I go to "load" and then select the stencil.font file, Godot will accept it, but then outputs an error "Unrecognized binary resource file: res://stencil.font"

On the other hand, attaching a GDScript to the button with these lines:
extends Button func _ready(): get_font("font").create_from_fnt("stencil.font")
will work perfectly.
Do I make a mistake at the Inspector, or are BitmapFonts not supported there?

in Engine by (12 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.