Fix: Add fallback for missing custom fonts to prevent render errors

This commit is contained in:
Antigravity Agent
2026-01-19 22:59:45 -05:00
parent 98d5d64cfc
commit 46c3cb0e55
2 changed files with 28 additions and 7 deletions

View File

@@ -2,8 +2,13 @@
#include <GfxRenderer.h>
#include <vector>
class EpdFontLoader {
public:
static void loadFontsFromSd(GfxRenderer& renderer);
static int getBestFontId(const char* familyName, int size);
private:
static std::vector<int> loadedCustomIds;
};