Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion resets if the font is too large #19

Open
yaredna opened this issue Sep 6, 2024 · 2 comments
Open

Conversion resets if the font is too large #19

yaredna opened this issue Sep 6, 2024 · 2 comments

Comments

@yaredna
Copy link

yaredna commented Sep 6, 2024

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
Copy link
Owner

ropg commented Sep 7, 2024

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.

@yaredna
Copy link
Author

yaredna commented Sep 7, 2024

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 !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants