If you replace the charset1 stuff with what it obviously needs, then this
method seems to paint glyphs from any texture size, with any row length.
Hope it helps someone. Its just a modification to the one in the paradroidz source, to permit any number of rows.
public static void blitText(FrameBuffer buffer, String line, int x, int y)
{
if (charset1 == null)
return;
char end = charset1.getEnd();
char start = charset1.getStart();
int rowLength = charset1.getRowLength();
int width = charset1.getFontWidth();
int height = charset1.getFontHeight();
Texture texture = charset1.getGlyphTexture();
//line = line.toUpperCase();
for (int i=0; i<line.length(); i++)
{
char cNum = line.charAt(i);
int iNum = cNum-start;
int yNum = 0;
if (iNum > rowLength-1)
{
int rows = (int)Math.floor(iNum/rowLength);
yNum += rows*height;
iNum -= rows*rowLength;
}
if (iNum>0 && iNum<=end)
buffer.blit(texture, iNum * width, yNum, x, y, width, height,
FrameBuffer.TRANSPARENT_BLITTING);
x += width;
}
}