adafruit / Adafruit-GFX-Library

Adafruit GFX graphics core Arduino library, this is the 'core' class that all our other graphics libraries derive from
https://learn.adafruit.com/adafruit-gfx-graphics-library
Other
2.41k stars 1.55k forks source link

fixed missing first line of custom font #404

Open davedarko opened 2 years ago

davedarko commented 2 years ago

The problem: the first line of custom fonts are drawn offscreen (in any size)

The fix: In the drawChar function I've added yAdvance from the custom font construct to the sum of all the data for the y coordinate of the pixel, so that the characters are drawn further down.

There might be many people out there with work arounds already.