Fix font loading: V1 support, V0 header fix, flexible discovery, doc cleanup

This commit is contained in:
Antigravity Agent
2026-01-20 12:52:53 -05:00
parent 6f05731189
commit 0a3a2cef5d
8 changed files with 260 additions and 100 deletions

View File

@@ -22,7 +22,7 @@ struct GlyphStructCacheEntry {
class CustomEpdFont : public EpdFont {
public:
CustomEpdFont(const String& filePath, const EpdFontData* data, uint32_t offsetIntervals, uint32_t offsetGlyphs,
uint32_t offsetBitmaps);
uint32_t offsetBitmaps, int version = 0);
~CustomEpdFont() override;
const EpdGlyph* getGlyph(uint32_t cp, const EpdFontStyles::Style style = EpdFontStyles::REGULAR) const override;
@@ -45,6 +45,7 @@ class CustomEpdFont : public EpdFont {
mutable GlyphStructCacheEntry glyphCache[GLYPH_CACHE_CAPACITY];
mutable uint32_t currentAccessCount = 0;
int version = 0;
void clearCache() const;
};