Version/Branch of Dear ImGui:
Version 1.92, Branch: docking + string_view
Back-ends:
imgui_impl_XXX.cpp + imgui_impl_XXX.cpp
Compiler, OS:
Windows 11 + MSVC 2022
Full config/build information:
No response
Details:
When loading a font with ImFontConfig::MergeMode = true ImGui seems to assume ImFontConfig::DstFont is identical to the most recently added font:
This later asserts in ImFontAtlasBuildSetupFontSpecialGlyphs() because DstFont doesn't contain the config in its Sources:
|
IM_ASSERT(font->Sources.contains(src)); |
Maybe I'm misusing the API after the recent texture changes, but this used to work in 1.89.
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
Version/Branch of Dear ImGui:
Version 1.92, Branch: docking + string_view
Back-ends:
imgui_impl_XXX.cpp + imgui_impl_XXX.cpp
Compiler, OS:
Windows 11 + MSVC 2022
Full config/build information:
No response
Details:
When loading a font with
ImFontConfig::MergeMode = trueImGui seems to assumeImFontConfig::DstFontis identical to the most recently added font:imgui/imgui_draw.cpp
Line 3029 in 8dc457f
This later asserts in
ImFontAtlasBuildSetupFontSpecialGlyphs()becauseDstFontdoesn't contain the config in itsSources:imgui/imgui_draw.cpp
Line 3722 in 8dc457f
Maybe I'm misusing the API after the recent texture changes, but this used to work in 1.89.
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code: