@SuppressWarnings("unchecked")
	public void setFont() {
		GL11.glDisable(GL11.GL_TEXTURE_2D);
		try {
			font = Font.createFont(Font.PLAIN, new FileInputStream(System.getProperty("resources") + "/fonts/" + fontName));
			if(size == 0f)
				font = font.deriveFont(defaultSize);
			else
				font = font.deriveFont(size);
		} catch (FontFormatException e) {
			System.err.println("Invalid font format");
		} catch (IOException e) {
			System.err.println("Could not find font");
		}
		unifont = new UnicodeFont(font);
		unifont.getEffects().add(new ColorEffect());
		unifont.addAsciiGlyphs();
		
		try {
			unifont.loadGlyphs();
		} catch(SlickException e) {
			System.err.println("Could not load ASCII Glyphs");
		}
		GL11.glEnable(GL11.GL_TEXTURE_2D);
	}