From df98bfbf04ea18b183dd9c1e40c85910593f4396 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 23 Sep 2020 00:40:18 +1000 Subject: [PATCH] Qt: Set Cyrillic glyph range/font for OSD for ru language --- src/duckstation-qt/qthostinterface.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/duckstation-qt/qthostinterface.cpp b/src/duckstation-qt/qthostinterface.cpp index 2fdbf9041..fcb7184d4 100644 --- a/src/duckstation-qt/qthostinterface.cpp +++ b/src/duckstation-qt/qthostinterface.cpp @@ -1314,6 +1314,12 @@ 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");