Ok this time I'm sure I've found a bug.
I just converted an old bitmap font decoder from Slick2D into jPCT. The principles are basically exactly the same.
The code I would want to use would be something like this: (for numbers)
public static void drawString(FrameBuffer b,int x,int y,String string)
{
if(string.length()>0)
{
for(int c=0;c<string.length();c++)
{
int ascii=(int)string.charAt(c);
if(ascii>47&&ascii<58)
{
b.blit(bmpFont,(ascii-48)*letterSize,letterSize*2,x+(c*letterSize),y,letterSize,letterSize,letterSize,letterSize,5,false);
}
}
}
}
This should theoretically work on this image:

But it displays a seemingly random jumbled subset of the image.
The only way I could get it to display the right numbers (or letters in other parts of the whole code) was to do something like this:
b.blit(bmpFont,(ascii-48)*letterSize,64*2,x+(c*letterSize),y,letterSize,64,letterSize,letterSize,5,false);But I mean, why 64? How am I to use this usefully?
If I resize the image to 260x260, the original works, but has artifacts around the edges of characters and wastes space.
