diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-06 22:26:25 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-06 22:26:25 +0100 |
| commit | c739e9c6f470178e1db73a4300c0cba6fa34b61c (patch) | |
| tree | 76c0a20c5b55fa869e84dc258982feb0864a5d51 | |
| parent | 80c4d548d420b94b5e0e548c9b0b911108ca5002 (diff) | |
dont automatically include korean and japanese glyphs
| -rw-r--r-- | imgui/imgui_spectrum.cpp | 25 |
1 files changed, 10 insertions, 15 deletions
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(); |
