Fix: Add fallback for missing custom fonts to prevent render errors
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user