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

Make Adafruit_GFX_Button::drawButton work with custom fonts by using … #454

Open gilesp1729 opened 4 months ago

gilesp1729 commented 4 months ago

A simple change to make Adafruit_GFX_Button::drawButton work with custom fonts by using getTextBounds to obtain the text bounds. (it is, afaik, also covered by PR #347 in a slightly different way)

gilesp1729 commented 4 months ago

Virtualising charBounds is really an unrelated change. I don't know how to (or if I can or should) make it the subject of a separate PR.