Adafruit-GFX-Library icon indicating copy to clipboard operation
Adafruit-GFX-Library copied to clipboard

Big fonts issue

Open rverzinkevicius opened this issue 5 years ago • 0 comments

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?

rverzinkevicius avatar Jun 29 '20 05:06 rverzinkevicius