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

Big fonts issue #309

Open
rverzinkevicius opened this issue Jun 29, 2020 · 0 comments
Open

Big fonts issue #309

rverzinkevicius opened this issue Jun 29, 2020 · 0 comments

Comments

@rverzinkevicius
Copy link

Hi,

I am having issue with big fonts. I use http://oleddisplay.squix.ch/#/home to create GFX fonts and fonts with sizes about 148 (it is different for each font) and above are not displayed correctly. I think that "int8_t yOffset; " in gfxfont.h is the issue. With big fonts, we get y ofsset larger than -128 and this makes crazy results.
For example i want to use DSEG7_Classic_Bold_148 font, then yOffset is -148, which is out of int8_t's range of -128..127. To be able to use font, i just used workaround to substratct 30 from yOffset in font file.
I do not know what other dependencies there might be and haven't tried it myself, but maybe declaring yOffset as int16_t would be an option in my case?

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