+1 vote

This is a bit of a weird question, but does anyone know how I can convert a font file to one that Godot supports. I like the engine, but the font file types it supports are outdated and I cannot find a fnt nor a converter that works, does anyone know of any good fnt font sites or a good converter?

in Engine by (17 points)

ttf and otf are outdated? What format are you using?

1 Answer

+2 votes

The best way to use fonts in Godot (2.1 or 3.0, at the time of writing) is to use DynamicFont. You can do so by selecting a node property which expects a font resource, clicking New DynamicFont in the dropdown menu, then loading a TrueType (.ttf) or OpenType (.otf) font file in the Font Data property. See the screenshot below (which is from the Inspector, while editing the DynamicFont resource):

Screenshot of the Inspector with DynamicFont resource editing

Note that DynamicFonts are usually more suited to modern visuals (which rarely require soft shadows or gradients), and can easily be re-generated to several sizes (which is not the case of BitmapFonts).

by (12,795 points)
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.