Introduce methods to temporarily release the 48KB framebuffer during memory-intensive chapter builds, allowing the memory to be reused. Add font metadata query methods (hasGlyphMeta, ensureAdvance) that check glyph existence and fetch advance metrics without loading full bitmap data, avoiding expensive SD reads during layout measurement.
11 lines
555 B
C++
11 lines
555 B
C++
// Link stubs for the adapter's SD-backed metric path. The suite's test
|
|
// families have no glyphMissCtx, so CpFontAdapter never calls into SdCardFont
|
|
// here — but the symbols must resolve, and SdCardFont.cpp itself needs
|
|
// Arduino/SD and cannot build on host.
|
|
#include <SdCardFont.h>
|
|
|
|
bool SdCardFont::hasGlyphMeta(uint8_t, uint32_t) const { return false; }
|
|
uint16_t SdCardFont::ensureAdvance(uint8_t, uint32_t) { return 0; }
|
|
uint8_t SdCardFont::styleIdxFromMissCtx(void*) { return 0; }
|
|
SdCardFont* SdCardFont::fromMissCtx(void*) { return nullptr; }
|