CheeseBoard
A library for use with the CheeseBoard Cheddar platform
GfxFont.cpp
1 #include "GfxFont.h"
2 
3 GfxFont GfxDefaultFont(u8g2_font_helvR08_tf, 10);
4 
5 GfxFont::GfxFont(const uint8_t* font, uint8_t fontHeight) :
6  _font(font),
7  _height(fontHeight)
8 {
9 }
10 
11 uint8_t GfxFont::height()
12 {
13  return _height;
14 }
15 
16 void GfxFont::use() {
17  CbOledDisplay.setFont(_font);
18 }
19 
Definition: GfxFont.h:8
GfxFont(const uint8_t *font, uint8_t fontHeight)
Definition: GfxFont.cpp:5
uint8_t height()
Definition: GfxFont.cpp:11
void use()
Definition: GfxFont.cpp:16