Fonts: Core allocates per-baked-per-src backend buffers, to allow having custom backend per font source. Backend BakedInit/Destroy/AddGlyph process a single source.

This commit is contained in:
ocornut
2025-06-11 15:47:41 +02:00
parent d59f10d7f5
commit 1cfc0de31d
4 changed files with 133 additions and 128 deletions
+1 -1
View File
@@ -3654,7 +3654,7 @@ struct ImFontBaked
int LastUsedFrame; // 4 // // Record of that time this was bounds
ImGuiID BakedId; // 4 //
ImFont* ContainerFont; // 4-8 // in // Parent font
void* FontBackendData; // 4-8 // // Font backend opaque storage (per baked font)
void* FontLoaderDatas; // 4-8 // // Font loader opaque storage (per baked font * sources): single contiguous buffer allocated by imgui, passed to loader.
// Functions
IMGUI_API ImFontBaked();