adafruit / Adafruit_RA8875

Adafruit Arduino library driver for the RA8875 TFT driver
http://www.adafruit.com/products/1590
Other
68 stars 58 forks source link

Enable use of Adafruit GFX fonts #29

Closed S2Doc closed 4 years ago

S2Doc commented 4 years ago

The Adafruit_RA8875 library cannot utilize alternate fonts, such as those provided with the Adafruit_GFX library. This problem can be fixed by commenting out the two virtual size_t write() prototypes in Adafruit_RA88745.h.

Rather than requiring those wishing to use these fonts to make custom-modified libraries, how about making a compiler directive like _USE_ADAFRUIT_GFXFONTS ? The two instances of virtual size_t write() would then only be compiled if this directive is not defined.

This would be a simple change that would enhance usability of this library.