CubeCell-Arduino
CubeCell-Arduino copied to clipboard
ArialMT_Plain_10[] and ArialMT_Plain_16[] gets linked twice, doubling the flash space occupied.
While trying to reduce codesize on a Heltec CubeCell project, I noticed that the four largest objects linked into the binary are:
- ArialMT_Plain_16
- ArialMT_Plain_16
- ArialMT_Plain_10
- ArialMT_Plain_10
I confirmed that these are indeed unique instances, and each of the fonts is being included twice in the compiled project. This appears related to how they are declared (!) in the header file HT_DisplayFonts.h included by HT_Display.h
I've been unable to hack together any way to include HT_Display.h and get only ONE instance of each font, and they are substantial in size. I could provide my own font file, but there's no way to unravel all the plagiarized/unattributed old versions of the packed-in source code from the Platform, so I'm stuck with this one.
How can I include only one instance of each font?