Other than keeping track manually, is there some way to identify which font is current? I need to change a font and then return to what it had been.
Is there some library that supplies that capability?
Thanks in advance
Other than keeping track manually, is there some way to identify which font is current? I need to change a font and then return to what it had been.
Is there some library that supplies that capability?
Thanks in advance
Go on. Say what libraries you are using.
OOPS!!
#include <SPI.h>
#include <MCUFRIEND_kbv.h>
#include <Wire.h>
#include "Adafruit_GFX.h"
#include <Fonts/FreeSansBold24pt7b.h>
#include <Fonts/FreeSansBold18pt7b.h>
#include <Fonts/FreeSans9pt7b.h>
#include <Fonts/FreeSans12pt7b.h>
#include <Fonts/FreeSansBold12pt7b.h>
Ok, so you are using an "Adafruit_GFX" derived library with some specific FreeFonts. i.e. MCUFRIEND_kbv
No, the current font is not public variable. You have two choices:
GFXfont *gfxFont
setFont() calls.(2) strikes me as the simplest solution.
However (1) is attractive if you want to implement some useful features and capabilities.
David.
Thanks.
Pretty much what I'd figured. #2 it is. I'll just wrap ever PRINT with its own font declaration.
Again, thanks.