package readers.fonts; import java.awt.image.BufferedImage; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.StandardOpenOption; import java.util.List; import java.awt.Color; public class Font { Glyph[] data = new Glyph[10]; final static int TRANSPARENT = new Color(0,0,0,0).getRGB(); public static Font LoadFont(String fontName) { Path f = Paths.get("readers","fonts",fontName); if (Files.exists(f)) { Font font = new Font(); try { List data = Files.readAllLines(f); for (int i=0;iendY) { endY=Y; } } } g.height=endY-startY; g.data = new boolean[g.width*g.height]; for (int X=0;X=0&&index