#include <display_buffer.h>
|
| Font (const GlyphData *data, int data_nr, int baseline, int bottom) |
| Construct the font with the given glyphs. More...
|
|
int | match_next_glyph (const char *str, int *match_length) |
|
void | measure (const char *str, int *width, int *x_offset, int *baseline, int *height) |
|
const std::vector< Glyph > & | get_glyphs () const |
|
Definition at line 443 of file display_buffer.h.
◆ Font()
esphome::display::Font::Font |
( |
const GlyphData * |
data, |
|
|
int |
data_nr, |
|
|
int |
baseline, |
|
|
int |
bottom |
|
) |
| |
Construct the font with the given glyphs.
- Parameters
-
glyphs | A vector of glyphs, must be sorted lexicographically. |
baseline | The y-offset from the top of the text to the baseline. |
bottom | The y-offset from the top of the text to the bottom (i.e. height). |
Definition at line 486 of file display_buffer.cpp.
◆ get_glyphs()
const std::vector< Glyph > & esphome::display::Font::get_glyphs |
( |
| ) |
const |
◆ match_next_glyph()
int esphome::display::Font::match_next_glyph |
( |
const char * |
str, |
|
|
int * |
match_length |
|
) |
| |
◆ measure()
void esphome::display::Font::measure |
( |
const char * |
str, |
|
|
int * |
width, |
|
|
int * |
x_offset, |
|
|
int * |
baseline, |
|
|
int * |
height |
|
) |
| |
◆ baseline_
int esphome::display::Font::baseline_ |
|
protected |
◆ bottom_
int esphome::display::Font::bottom_ |
|
protected |
◆ glyphs_
std::vector<Glyph> esphome::display::Font::glyphs_ |
|
protected |
The documentation for this class was generated from the following files: