EDIT: forget the rest of of this post Issue is here
http://forum.lwjgl.org/index.php?topic=6610.msg34982#msg34982(or scroll down to my next post)
I am having trouble rendering text, what is wrong with my method?


public static void drawString(String text) {
ByteBuffer charBuffer = BufferUtils.createByteBuffer(text.length() * 270);
int d = STBEasyFont.stb_easy_font_print(10, 10, text, null, charBuffer);
GL11.glBindTexture(GL11.GL_TEXTURE_2D, 7);
FloatBuffer b = charBuffer.asFloatBuffer();
float[] f = new float[text.length() * 270];
int i = 0;
while (b.hasRemaining()) {
f
= b.get();
i++;
}
int four = 0;
for(int z = 0; z < f.length; z+= 16){
if (f[z] == 0) break;
if (four == 0)GL11.glBegin(GL11.GL_QUADS);
float[] xb = new float[4], yb = new float[4];
//for (i = 0; i < 4; i++) {
float x = 0, y = 0;
for (int j = 0; j < 2; j++) {
if (j == 0) x = f[z + j];
else if (j == 1) y = f[z + j];
}
//}
GL11.glVertex2d(x, y);
four++;
if (four == 4) {
four = 0;
GL11.glEnd();
}
}
}
Any help would be
GREATLY APPRECIATED 