Skip to content

Commit 40d0cf3

Browse files
committed
add ImFontConfig::UserData
Useful to retrieve backend-specific data needed to find an appropriate fallback for an ImFont.
1 parent a85931b commit 40d0cf3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

imgui.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3499,6 +3499,7 @@ struct ImFontConfig
34993499
ImFont* DstFont; // Target font (as we merging fonts, multiple ImFontConfig may target the same font)
35003500
const ImFontLoader* FontLoader; // Custom font backend for this source (default source is the one stored in ImFontAtlas)
35013501
void* FontLoaderData; // Font loader opaque storage (per font config)
3502+
void* UserData;
35023503

35033504
IMGUI_API ImFontConfig();
35043505
};

0 commit comments

Comments
 (0)