0 votes

I cannot access my computer I have godot on for a few days and I just want to know if I can add an otf file to the UI.

Thanks in advance if someone answers this

Godot version Idk. I think just any newish version
in Engine by (12 points)

1 Answer

+1 vote

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.

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 (37 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.