if (displayList != null) GL.glNewList(displayList.id, SGL.GL_COMPILE_AND_EXECUTE);
if(size != max_size) GL.glScalef(size/max_size, size/max_size, 1);
ColoredString colored_text = new ColoredString(text, color);
char[] chars = colored_text.text()/*.substring(0, endIndex)*/.toCharArray();
GlyphVector vector = font.layoutGlyphVector(GlyphPage.renderContext, chars, 0, chars.length, Font.LAYOUT_LEFT_TO_RIGHT);
int maxWidth = 0, totalHeight = 0, lines = 0;
int extraX = 0, extraY = ascent;
boolean startNewLine = false;