Skip to content

Mickeon/Godot-Texture-Font

 
 

Repository files navigation

Warning

This port from 3.x is still "Work in Progress". Some things may not work properly, a few things may break over time.

TextureFont for Godot 4.2+

TextureFont is an addon for Godot that allows creating fonts from textures from directly within the editor.
This addon adds a new TextureFont resource that defines how each character is mapped to the texture(s). These resources can be used anywhere a font is expected (Such as Label, Button, TextEdit). They allow for fancier, more colorful or more retro-looking fonts over the standard formats.

Although not up-to-date, the original guide should suffice as a point of reference. However, it shouldn't be too hard to figure out. What you do need to know for starters:

  • Enable this addon in the Project Setting's "Plugins" tab;
  • Navigate to the File System dock, right click and select "New Resource...";
  • Look up and pick "TextureFont". Once it has been created, select it;
  • Congratulations! The Texture Font editor is now open. O joy of creation.

Credit to @ElectronicBlueberry for the original addon.
This port was initially tailored specifically to my project. However, I feel like the public would benefit from it as well.

Notable differences currently include:

  • Image scale and interpolation are disabled.
    • A better, more dynamic solution may be added in the future.
  • There is no way to define a fallback font within the editor.

Note

This port uses a very hacky solution which can cause errors on every save of a scene containing TextureFont resources. This is not easily avoidable until godotengine/godot#82254 is addressed.

About

Godot Addon for creating custom Fonts from Textures

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • GDScript 100.0%