Move Font glyphs to SPI RAM. (#4485)

Co-authored-by: Your Name <you@example.com>
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Fabian
2023-02-26 19:45:30 +01:00
committed by GitHub
parent 86c0e6114f
commit 62459a8ae1
2 changed files with 17 additions and 8 deletions
+4 -2
View File
@@ -526,10 +526,12 @@ class Font {
inline int get_baseline() { return this->baseline_; }
inline int get_height() { return this->height_; }
const std::vector<Glyph> &get_glyphs() const;
Glyph *&get_glyphs() { return this->glyphs_; }
const u_int16_t &get_glyphs_size() const { return this->glyphs_size_; }
protected:
std::vector<Glyph> glyphs_;
Glyph *glyphs_{nullptr};
u_int16_t glyphs_size_;
int baseline_;
int height_;
};