mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 14:25:37 +00:00
Qt: Set Cyrillic glyph range/font for OSD for ru language
This commit is contained in:
parent
20b609a3e0
commit
df98bfbf04
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue