Qt: Set Cyrillic glyph range/font for OSD for ru language

This commit is contained in:
Connor McLaughlin 2020-09-23 00:40:18 +10:00
parent 20b609a3e0
commit df98bfbf04

View file

@ -1314,6 +1314,12 @@ static bool AddImGuiFont(const std::string& language, float size, float framebuf
path = GetFontPath("msgothic.ttc"); path = GetFontPath("msgothic.ttc");
range = ImGui::GetIO().Fonts->GetGlyphRangesJapanese(); 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") else if (language == "zh-cn")
{ {
path = GetFontPath("msyh.ttc"); path = GetFontPath("msyh.ttc");