Added fallback for monospace font
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user