39 #define SSD1306_MORE_CHARS_REQUIRED 0xffff 90 #ifndef DOXYGEN_SHOULD_SKIP_THIS 91 void loadFixedFont_oldStyle(
const uint8_t *progmemFont);
94 #ifndef DOXYGEN_SHOULD_SKIP_THIS 100 void loadSquixFont(
const uint8_t *progmemFont);
144 return m_fixedFont.
h;
163 return m_fixedFont.
pages;
166 #ifndef DOXYGEN_SHOULD_SKIP_THIS 167 const uint8_t *getPrimaryTable()
uint8_t lcduint_t
internal int type, used by the library.
NanoFont(const uint8_t *progmemFont)
Creates NanoFont object and loads font of fixed type from flash memory.
const uint8_t * primary_table
font chars bits
Structure describes single char information.
lcduint_t getTextSize(const char *text, lcduint_t *height=nullptr)
returns text width in pixels (and its height if height is requested)
NanoFont()
Creates empty NanoFont object.
Structure is used for internal font presentation.
NanoFont class implements work with fonts provided by the library: loading fonts, providing their par...
void setSpacing(uint8_t spacing)
Sets spacing in pixels between 2 nearest characters.
Basic structures of canvas gfx library.
uint8_t getPages()
Returns how many pages in terms of ssd1306 display are required for the font height.
static uint16_t unicode16FromUtf8(uint8_t ch)
Returns 16-bit unicode char, encoded in utf8 SSD1306_MORE_CHARS_REQUIRED if more characters is expect...
const SFontHeaderRecord & getHeader()
Returns reference to SFontHeaderRecord.
SFontHeaderRecord h
record, containing information on font
void loadFixedFont(const uint8_t *progmemFont)
Function allows to set another fixed font for the library.
void loadSecondaryFont(const uint8_t *progmemUnicode)
Function allows sets secondary font for specific language.
uint8_t spacing
spacing between two characters
void loadFreeFont(const uint8_t *progmemFont)
Function allows to set another free font for the library.
uint8_t pages
height in pages (each page height is 8-pixels)
void getCharBitmap(uint16_t ch, SCharInfo *info)
returns char data for currently set (active) font.