Added fallback for monospace font

This commit is contained in:
Anuken
2026-03-04 19:16:22 -05:00
parent 2ed9fa8834
commit 0215cabda8
2 changed files with 5 additions and 2 deletions

View File

@@ -71,7 +71,10 @@ public class Fonts{
incremental = true;
//most people will never see the monospace font, so don't pre-bake anything
characters = "\u0000 ";
}})).loaded = f -> Fonts.monospace = f;
}})).loaded = f -> {
Fonts.monospace = f;
f.addFallback(Fonts.def);
};
Core.assets.load("icon", Font.class, new FreeTypeFontLoaderParameter("fonts/icon.ttf", new FreeTypeFontParameter(){{
size = 30;