27 const uint8_t *
get_char()
const {
return reinterpret_cast<const uint8_t *
>(this->
a_char); }
64 Font(
const Glyph *data,
int data_nr,
int baseline,
int height,
int descender,
int xheight,
int capheight,
71 Color background)
override;
72 void measure(
const char *str,
int *width,
int *x_offset,
int *baseline,
int *height)
override;
Lightweight read-only view over a const array stored in RODATA (will typically be in flash memory) Av...
void measure(const char *str, int *width, int *x_offset, int *baseline, int *height) override
const ConstVector< Glyph > & get_glyphs() const
int match_next_glyph(const uint8_t *str, int *match_length) const
ConstVector< Glyph > glyphs_
Font(const Glyph *data, int data_nr, int baseline, int height, int descender, int xheight, int capheight, uint8_t bpp=1)
Construct the font with the given glyphs.
bool compare_to(const uint8_t *str) const
constexpr Glyph(const char *a_char, const uint8_t *data, int advance, int offset_x, int offset_y, int width, int height)
void scan_area(int *x1, int *y1, int *width, int *height) const
const uint8_t * get_char() const
int match_length(const uint8_t *str) const
Providing packet encoding functions for exchanging data with a remote host.