This commit is contained in:
Anuken
2020-11-18 18:29:31 -05:00
parent 2758e65e19
commit 63d4428527

View File

@@ -95,6 +95,7 @@ public class Fonts{
var region = new TextureRegion();
int code = Iconc.codes.get(name, '\uF8D4');
var glyph = iconLarge.getData().getGlyph((char)code);
if(glyph == null) return Core.atlas.find("error");
region.set(iconLarge.getRegion().texture);
region.set(glyph.u, glyph.v2, glyph.u2, glyph.v);
return region;