1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-09 23:54:20 +00:00

Fonts: remove ImFontHooks in favor of a AddRemapChar() implementation.

This commit is contained in:
ocornut 2025-05-08 17:59:18 +02:00
parent 89e880dfd1
commit f6735c223c
3 changed files with 12 additions and 39 deletions

View file

@ -37,7 +37,7 @@ Index of this file:
// [SECTION] Tab bar, Tab item support
// [SECTION] Table support
// [SECTION] ImGui internal API
// [SECTION] ImFontLoader, ImFontHooks
// [SECTION] ImFontLoader
// [SECTION] ImFontAtlas internal API
// [SECTION] Test Engine specific hooks (imgui_test_engine)
@ -3664,7 +3664,7 @@ namespace ImGui
//-----------------------------------------------------------------------------
// [SECTION] ImFontLoader, ImFontHooks
// [SECTION] ImFontLoader
//-----------------------------------------------------------------------------
// Hooks and storage for a given font backend.
@ -3693,14 +3693,6 @@ struct ImFontLoader
IMGUI_API const ImFontLoader* ImFontAtlasGetFontLoaderForStbTruetype();
#endif
// User hooks
// Conceptually this could be public, but API is still going to be evolve.
struct ImFontHooks
{
// Modify codepoint to map to another value.
void (*FontHookRemapCodepoint)(ImFontAtlas* atlas, ImFont* font, ImWchar* io_codepoint);
};
//-----------------------------------------------------------------------------
// [SECTION] ImFontAtlas internal API
//-----------------------------------------------------------------------------