Can I add an otf custom font file to my games UI?

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

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

:bust_in_silhouette: Reply From: Ghost#1

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).