58 Font(
const Glyph *data,
int data_nr,
int baseline,
int height,
int descender,
int xheight,
int capheight,
65 Color background)
override;
66 void measure(
const char *str,
int *width,
int *x_offset,
int *baseline,
int *height)
override;
93 static const uint8_t *
get_glyph_bitmap(
const lv_font_t *font, uint32_t unicode_letter);
94 static bool get_glyph_dsc_cb(
const lv_font_t *font, lv_font_glyph_dsc_t *dsc, uint32_t unicode_letter, uint32_t next);
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 Glyph * find_glyph(uint32_t codepoint) const
static const uint8_t * get_glyph_bitmap(const lv_font_t *font, uint32_t unicode_letter)
static bool get_glyph_dsc_cb(const lv_font_t *font, lv_font_glyph_dsc_t *dsc, uint32_t unicode_letter, uint32_t next)
const Glyph * get_glyph_data_(uint32_t unicode_letter)
const ConstVector< Glyph > & get_glyphs() const
const lv_font_t * get_lv_font() 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 is_less_or_equal(uint32_t other) const
const uint32_t code_point
constexpr Glyph(uint32_t code_point, const uint8_t *data, int advance, int offset_x, int offset_y, int width, int height)
Providing packet encoding functions for exchanging data with a remote host.