diff --git a/data/polrus/fonts/bank.ttf b/data/polrus/fonts/bank.ttf new file mode 100644 index 00000000..818d5427 Binary files /dev/null and b/data/polrus/fonts/bank.ttf differ diff --git a/data/polrus/fonts/default.otf b/data/polrus/fonts/default.otf new file mode 100644 index 00000000..f69f87ed Binary files /dev/null and b/data/polrus/fonts/default.otf differ diff --git a/data/polrus/fonts/defaultBold.otf b/data/polrus/fonts/defaultBold.otf new file mode 100644 index 00000000..9bff4f47 Binary files /dev/null and b/data/polrus/fonts/defaultBold.otf differ diff --git a/data/ui_scripts/settings/language.lua b/data/ui_scripts/settings/language.lua index 2dd1adbc..2d63863a 100644 --- a/data/ui_scripts/settings/language.lua +++ b/data/ui_scripts/settings/language.lua @@ -71,11 +71,24 @@ local function usingspeciallanguage() ["portuguese"] = true, ["spanishna"] = true, ["english_safe"] = true, + ["russian"] = true, + ["polish"] = true, + ["russian_partial"] = true, } return normalfontlangs[lang] ~= true end +LUI.UIButtonText.IsOffsetedLanguage = function() + if Engine.IsRightToLeftLanguage() then + return true + elseif Engine.IsAsianLanguage() then + return true + else + return false + end +end + LUI.MenuBuilder.registerType("choose_language_menu", function(a1) local menu = LUI.MenuTemplate.new(a1, { menu_title = "@LUA_MENU_CHOOSE_LANGUAGE", @@ -92,7 +105,9 @@ LUI.MenuBuilder.registerType("choose_language_menu", function(a1) local id = languages[i].id if (not usingspeciallanguage()) then - if (id == 5 or (id >= 8 and id < 12) or id == 17) then + if (id == 5 or id == 6 or id == 17) then + LUI.MenuGenericButtons.ButtonLabelFont.Font = RegisterFont("polrus/fonts/default.otf", 30) + elseif (id >= 8 and id < 12) then LUI.MenuGenericButtons.ButtonLabelFont.Font = RegisterFont("fonts/noto_sans_sc.otf", 30) overrideyoffset = 0 LUI.MenuGenericButtons.ButtonLabelFont.Height = 17