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; incremental = true;
//most people will never see the monospace font, so don't pre-bake anything //most people will never see the monospace font, so don't pre-bake anything
characters = "\u0000 "; 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(){{ Core.assets.load("icon", Font.class, new FreeTypeFontLoaderParameter("fonts/icon.ttf", new FreeTypeFontParameter(){{
size = 30; size = 30;

View File

@@ -26,4 +26,4 @@ org.gradle.caching=true
org.gradle.internal.http.socketTimeout=100000 org.gradle.internal.http.socketTimeout=100000
org.gradle.internal.http.connectionTimeout=100000 org.gradle.internal.http.connectionTimeout=100000
android.enableR8.fullMode=false android.enableR8.fullMode=false
archash=aba0013e6b archash=962a97d8b6