Fonts: comments, tweaks, minor amends.

Comments, tweaks
This commit is contained in:
ocornut
2025-03-19 14:06:08 +01:00
parent e41bf16ff1
commit 0fff7ceda4
3 changed files with 67 additions and 41 deletions

View File

@@ -16552,7 +16552,7 @@ void ImGui::DebugNodeFont(ImFont* font)
ImGuiContext& g = *GImGui;
ImGuiMetricsConfig* cfg = &g.DebugMetricsConfig;
ImFontAtlas* atlas = font->ContainerAtlas;
bool opened = TreeNode(font, "Font: \"%s\": %d sources(s)", font->Sources ? font->Sources[0].Name : "", font->SourcesCount);
bool opened = TreeNode(font, "Font: \"%s\": %d sources(s)", font->GetDebugName(), font->SourcesCount);
// Display preview text
if (!opened)