v0.4.3a: space saving improvements to rendered font files

This commit is contained in:
Evan Debenham
2016-10-18 05:00:34 -04:00
parent e524a0c486
commit 2478f9311c
6 changed files with 6 additions and 5 deletions

View File

@@ -239,7 +239,8 @@ public class RenderedText extends Image {
}
public static void setFont(String asset){
font = Typeface.createFromAsset(Game.instance.getAssets(), asset);
if (asset == null) font = null;
else font = Typeface.createFromAsset(Game.instance.getAssets(), asset);
clearCache();
}