Register more glyph ranges supported by Roboto

Adds support for Polish, makes Russian use a default font
This commit is contained in:
Silent
2021-01-05 18:17:18 +01:00
parent f832dca975
commit de075fffc3
2 changed files with 21 additions and 7 deletions

View File

@ -1442,12 +1442,6 @@ static bool AddImGuiFont(const std::string& language, float size, float framebuf
path = GetFontPath("msgothic.ttc");
range = ImGui::GetIO().Fonts->GetGlyphRangesJapanese();
}
else if (language == "ru")
{
path = GetFontPath("segoeui.ttf");
range = ImGui::GetIO().Fonts->GetGlyphRangesCyrillic();
size *= 1.15f;
}
else if (language == "zh-cn")
{
path = GetFontPath("msyh.ttc");