public Font(String path, float size) {
		
		try {
			font = java.awt.Font.createFont(java.awt.Font.TRUETYPE_FONT, new FileInputStream(path));
			font = font.deriveFont(size);
			fontSize = size;
			
			BufferedImage bufImg = new BufferedImage(1, (int) fontSize, BufferedImage.TYPE_INT_ARGB);
			Graphics2D g2d = bufImg.createGraphics();
			g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
			g2d.setFont(font);
			fontMetrics = g2d.getFontMetrics();
			g2d.dispose();
			
		} catch (IOException e) {
			e.printStackTrace();
		} catch (FontFormatException e) {
			e.printStackTrace();
		}

	}