package emergencylanding.k.library.debug;

import java.awt.Font;
import java.util.HashMap;

import org.lwjgl.opengl.Display;

import emergencylanding.k.library.internalstate.ELEntity;
import emergencylanding.k.library.lwjgl.DisplayLayer;
import emergencylanding.k.library.lwjgl.render.Render;
import emergencylanding.k.library.lwjgl.render.StringRenderer;
import emergencylanding.k.library.main.KMain;

public class FontTest extends KMain {
    static StringRenderer strrend;

    public static void main(String[] args) throws Exception {
        DisplayLayer.initDisplay(false, 800, 600, "Fonts!", false, args);
        while (!Display.isCloseRequested()) {
            DisplayLayer.loop(120);
        }
        strrend.destroy();
        DisplayLayer.destroy();
        System.exit(0);
    }

    @Override
    public void onDisplayUpdate(int delta) {
        strrend.drawString(10, 10, "A", 1, 1);
        strrend.drawString(100, 100, "Font is TNR Bold!!", 1, 1);
    }

    @Override
    public void init(String[] args) {
        strrend = new StringRenderer(
                new Font("times new roman", Font.PLAIN, 16), true);
    }

    @Override
    public void registerRenders(
            HashMap<Class<? extends ELEntity>, Render<? extends ELEntity>> classToRender) {
        // TODO Auto-generated method stub

    }
}

@@ -74,20 +74,111 @@
 ava.
-util.HashMap
+awt.Graphics;%0Aimport java.awt.image.BufferedImage;%0Aimport java.util.HashMap;%0A%0Aimport javax.swing.JFrame
 ;%0A%0Ai
@@ -318,24 +318,72 @@
 splayLayer;%0A
+import emergencylanding.k.library.lwjgl.Shapes;%0A
 import emerg
@@ -526,18 +526,245 @@
 ary.
-main.KMain
+lwjgl.render.VBAO;%0Aimport emergencylanding.k.library.lwjgl.render.VertexData;%0Aimport emergencylanding.k.library.lwjgl.tex.BufferedTexture;%0Aimport emergencylanding.k.library.main.KMain;%0Aimport emergencylanding.k.library.util.DrawableUtils
 ;%0A%0Ap
@@ -834,16 +834,46 @@
 strrend;
+%0A    static VBAO image = null;
 %0A%0A    pu
@@ -1239,24 +1239,46 @@
 nt delta) %7B%0A
+        image.draw();%0A
         strr
@@ -1296,13 +1296,15 @@
 ing(
-10, 1
+200, 20
 0, %22
@@ -1451,99 +1451,1030 @@
     
-strrend = new StringRenderer(%0A                new Font(%22times new roman%22, Font.PLAIN, 16), 
+final Font f = new Font(%22times new roman%22, Font.PLAIN, 16);%0A        strrend = new StringRenderer(f, true);%0A%0A        final BufferedImage strrendimg1 = DrawableUtils.getFontImage('A', true,%0A                f, 19);%0A%0A        image = Shapes.getQuad(%0A                new VertexData().setXYZ(300, 300, 0),%0A                new VertexData().setXYZ(strrendimg1.getWidth(),%0A                        strrendimg1.getHeight(), 0), Shapes.XY).setTexture(%0A                new BufferedTexture(strrendimg1));%0A        %0A        System.err.println(image);%0A%0A        // draw the matching data using a JFrame's graphics%0A        JFrame j = new JFrame(%22Fonts!%22) %7B%0A            private static final long serialVersionUID = 1L;%0A%0A            @Override%0A            public void paint(Graphics g) %7B%0A                super.paint(g);%0A                g.setFont(f);%0A                g.drawImage(strrendimg1, 200, 200, null);%0A                g.drawString(%22Font is TNR Bold!!%22, 100, 100);%0A            %7D%0A        %7D;%0A        j.setSize(800, 600);%0A        j.setVisible(
 true

Test with multiple examples of what it should be