adafruit / Adafruit-GFX-Library

Adafruit GFX graphics core Arduino library, this is the 'core' class that all our other graphics libraries derive from

Home Page:https://learn.adafruit.com/adafruit-gfx-graphics-library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use yAdvance to correctly adjust the cursor position when setting/restore custom font

rspurlock opened this issue · comments

Instead of hard coding a 6 pixel adjustment for the cursor Y position in setFont method shouldn't the code use the yAdvance field of the new font (or the yAdvance from the custom font when going back to system fonts) to correctly adjust the cursor position for custom fonts?