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

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

Open gilesp1729 opened this issue 1 year ago • 1 comments

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 avatar Jul 09 '24 05:07 gilesp1729

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.

gilesp1729 avatar Jul 20 '24 21:07 gilesp1729