From c739e9c6f470178e1db73a4300c0cba6fa34b61c Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Wed, 6 Mar 2024 22:26:25 +0100 Subject: dont automatically include korean and japanese glyphs --- imgui/imgui_spectrum.cpp | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) (limited to 'imgui') diff --git a/imgui/imgui_spectrum.cpp b/imgui/imgui_spectrum.cpp index 3a69e9e..fab9d27 100644 --- a/imgui/imgui_spectrum.cpp +++ b/imgui/imgui_spectrum.cpp @@ -27,22 +27,17 @@ namespace ImGui { io.FontDefault = font; } + + // Uncomment if you want these glyphs. Fonts can be found in fonts/ folder. + // io.Fonts->AddFontFromMemoryCompressedTTF( + // GmarketSans_compressed_data, + // GmarketSans_compressed_size, + // size, &config, io.Fonts->GetGlyphRangesKorean()); - io.Fonts->AddFontFromMemoryCompressedTTF( - GmarketSans_compressed_data, - GmarketSans_compressed_size, - size, &config, io.Fonts->GetGlyphRangesKorean()); - - io.Fonts->AddFontFromMemoryCompressedTTF( - NotoSansJP_compressed_data, - NotoSansJP_compressed_size, - size, &config, io.Fonts->GetGlyphRangesJapanese()); - - //builder.AddRanges(io.Fonts->GetGlyphRangesChineseFull()); - //builder.AddRanges(io.Fonts->GetGlyphRangesChineseSimplifiedCommon()); - //builder.AddRanges(io.Fonts->GetGlyphRangesCyrillic()); - //builder.AddRanges(io.Fonts->GetGlyphRangesThai()); - //builder.AddRanges(io.Fonts->GetGlyphRangesVietnamese()); + // io.Fonts->AddFontFromMemoryCompressedTTF( + // NotoSansJP_compressed_data, + // NotoSansJP_compressed_size, + // size, &config, io.Fonts->GetGlyphRangesJapanese()); io.Fonts->Build(); -- cgit v1.2.3-70-g09d2