mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-23 14:18:28 +02:00
Revert storing Font glyphs in manually-allocated memory (#4516)
This partially reverts commit 62459a8ae1.
This commit is contained in:
committed by
Jesse Hills
parent
a4f21db272
commit
7c91b4474a
@@ -526,12 +526,10 @@ class Font {
|
||||
inline int get_baseline() { return this->baseline_; }
|
||||
inline int get_height() { return this->height_; }
|
||||
|
||||
Glyph *&get_glyphs() { return this->glyphs_; }
|
||||
const u_int16_t &get_glyphs_size() const { return this->glyphs_size_; }
|
||||
const std::vector<Glyph, ExternalRAMAllocator<Glyph>> &get_glyphs() const { return glyphs_; }
|
||||
|
||||
protected:
|
||||
Glyph *glyphs_{nullptr};
|
||||
u_int16_t glyphs_size_;
|
||||
std::vector<Glyph, ExternalRAMAllocator<Glyph>> glyphs_;
|
||||
int baseline_;
|
||||
int height_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user