ropg/truetype2gfx

Conversion resets if the font is too large

Opened this issue · 2 comments

Tried Roboto Regular at size 96...
As you examine the table of characters and the offset position, the offset counter resets around the letter 'E', and restarts at 0. Is the offset limited to 16 bit numbers ?
Best

ropg commented

My code does not calculate or supply this offset, I think. Any limitations your experience are probably in the Adafruit code that this is just a very thin shell around.

I see. I may need to modify the Adafruit code, to allow for uint32t instead of int16t for the offset calculation, and there is another error too: 8 bit Y and X offset do not work with large fonts. They should be modified to 16 bits. Unfortunate ... I will have to modify the Adafruit library, and maybe recompile their tool ? Thanks !!!