Search in sources :

Example 1 with FontException

use of net.afterlifelochie.fontbox.font.FontException in project Minechem by iopleke.

the class ClientProxy method registerFonts.

@Override
public void registerFonts() {
    try {
        GLFont.fromTTF(Compendium.Fontbox.tracer(), 22.0f, new ResourceLocation(Compendium.Naming.id, "fonts/daniel.ttf"));
        GLFont.fromTTF(Compendium.Fontbox.tracer(), 22.0f, new ResourceLocation(Compendium.Naming.id, "fonts/notethis.ttf"));
        GLFont.fromTTF(Compendium.Fontbox.tracer(), 22.0f, new ResourceLocation(Compendium.Naming.id, "fonts/ampersand.ttf"));
    } catch (FontException font) {
        LogHelper.exception(font, Level.ERROR);
    }
}
Also used : ResourceLocation(net.minecraft.util.ResourceLocation) FontException(net.afterlifelochie.fontbox.font.FontException)

Aggregations

FontException (net.afterlifelochie.fontbox.font.FontException)1 ResourceLocation (net.minecraft.util.ResourceLocation)1