From 02ce1a2b3228e78aeead62cb969e7ebf8a3914b3 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 13 Dec 2015 16:15:11 +0000 Subject: [PATCH] Demo: Display extra info from ImFontConfig in the font display --- imgui_demo.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/imgui_demo.cpp b/imgui_demo.cpp index 11b3fee6..bb1e6f22 100644 --- a/imgui_demo.cpp +++ b/imgui_demo.cpp @@ -246,7 +246,10 @@ void ImGui::ShowTestWindow(bool* p_opened) ImGui::Text("Ascent: %f, Descent: %f, Height: %f", font->Ascent, font->Descent, font->Ascent - font->Descent); ImGui::Text("Fallback character: '%c' (%d)", font->FallbackChar, font->FallbackChar); for (int config_i = 0; config_i < font->ConfigDataCount; config_i++) - ImGui::BulletText("Input %d: \'%s\'", config_i, font->ConfigData[config_i].Name); + { + ImFontConfig* cfg = &font->ConfigData[config_i]; + ImGui::BulletText("Input %d: \'%s\'\nOversample: (%d,%d), PixelSnapH: %d", config_i, cfg->Name, cfg->OversampleH, cfg->OversampleV, cfg->PixelSnapH); + } ImGui::TreePop(); } ImGui::TreePop();