Imgui: Fixed using of Fonts->GetGlyphRangesCyrillic() for BE dictionary

This commit is contained in:
YuSanka 2023-06-02 16:53:05 +02:00
parent b20dfac403
commit 940fa11702

View File

@ -177,7 +177,7 @@ void ImGuiWrapper::set_language(const std::string &language)
m_font_cjk = false; m_font_cjk = false;
if (lang == "cs" || lang == "pl" || lang == "hu") { if (lang == "cs" || lang == "pl" || lang == "hu") {
ranges = ranges_latin2; ranges = ranges_latin2;
} else if (lang == "ru" || lang == "uk") { } else if (lang == "ru" || lang == "uk" || lang == "be") {
ranges = ImGui::GetIO().Fonts->GetGlyphRangesCyrillic(); // Default + about 400 Cyrillic characters ranges = ImGui::GetIO().Fonts->GetGlyphRangesCyrillic(); // Default + about 400 Cyrillic characters
} else if (lang == "tr") { } else if (lang == "tr") {
ranges = ranges_turkish; ranges = ranges_turkish;