From 8df6671acae6d301b645ffd6abcedc819d3f5365 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 9 Mar 2024 21:39:40 +0100 Subject: show indentation with arrow --- imgui/imgui_spectrum.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'imgui/imgui_spectrum.cpp') diff --git a/imgui/imgui_spectrum.cpp b/imgui/imgui_spectrum.cpp index 92667e0..30ff713 100644 --- a/imgui/imgui_spectrum.cpp +++ b/imgui/imgui_spectrum.cpp @@ -10,11 +10,23 @@ namespace ImGui { ImGuiIO& io = ImGui::GetIO(); ImFontConfig config; config.MergeMode = true; + + static const ImWchar rr[] = + { + 0x2192, 0x2193, // Basic Latin + Latin Supplement + 0, + }; + + ImFontGlyphRangesBuilder builder; + ImVector ranges; + builder.AddRanges(io.Fonts->GetGlyphRangesDefault()); + builder.AddRanges(rr); + builder.BuildRanges(&ranges); ImFont* font = io.Fonts->AddFontFromMemoryCompressedTTF( SourceSansProRegular_compressed_data, SourceSansProRegular_compressed_size, - size, nullptr, nullptr); + size, nullptr, ranges.Data); IM_ASSERT(font != nullptr); io.FontDefault = font; -- cgit v1.2.3-70-g09d2