Fonts: A font source can specify its own loader/backend.

This commit is contained in:
ocornut
2025-06-11 15:47:41 +02:00
parent 1cfc0de31d
commit c06a7585a3
2 changed files with 57 additions and 27 deletions
+2
View File
@@ -3444,7 +3444,9 @@ struct ImFontConfig
// [Internal]
char Name[40]; // Name (strictly to ease debugging)
ImFontFlags Flags; // Font flags (don't use just yet)
ImFont* DstFont; // Target font (as we merging fonts, multiple ImFontConfig may target the same font)
const ImFontLoader* FontLoader; // Custom font backend for this source (other use one stored in ImFontAtlas)
void* FontLoaderData; // Font loader opaque storage (per font config)
IMGUI_API ImFontConfig();