Better polish/russian fonts #301
This commit is contained in:
parent
1c7ec6e3a7
commit
947b0b3596
BIN
data/polrus/fonts/bank.ttf
Normal file
BIN
data/polrus/fonts/bank.ttf
Normal file
Binary file not shown.
BIN
data/polrus/fonts/default.otf
Normal file
BIN
data/polrus/fonts/default.otf
Normal file
Binary file not shown.
BIN
data/polrus/fonts/defaultBold.otf
Normal file
BIN
data/polrus/fonts/defaultBold.otf
Normal file
Binary file not shown.
@ -71,11 +71,24 @@ local function usingspeciallanguage()
|
|||||||
["portuguese"] = true,
|
["portuguese"] = true,
|
||||||
["spanishna"] = true,
|
["spanishna"] = true,
|
||||||
["english_safe"] = true,
|
["english_safe"] = true,
|
||||||
|
["russian"] = true,
|
||||||
|
["polish"] = true,
|
||||||
|
["russian_partial"] = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
return normalfontlangs[lang] ~= true
|
return normalfontlangs[lang] ~= true
|
||||||
end
|
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)
|
LUI.MenuBuilder.registerType("choose_language_menu", function(a1)
|
||||||
local menu = LUI.MenuTemplate.new(a1, {
|
local menu = LUI.MenuTemplate.new(a1, {
|
||||||
menu_title = "@LUA_MENU_CHOOSE_LANGUAGE",
|
menu_title = "@LUA_MENU_CHOOSE_LANGUAGE",
|
||||||
@ -92,7 +105,9 @@ LUI.MenuBuilder.registerType("choose_language_menu", function(a1)
|
|||||||
local id = languages[i].id
|
local id = languages[i].id
|
||||||
|
|
||||||
if (not usingspeciallanguage()) then
|
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)
|
LUI.MenuGenericButtons.ButtonLabelFont.Font = RegisterFont("fonts/noto_sans_sc.otf", 30)
|
||||||
overrideyoffset = 0
|
overrideyoffset = 0
|
||||||
LUI.MenuGenericButtons.ButtonLabelFont.Height = 17
|
LUI.MenuGenericButtons.ButtonLabelFont.Height = 17
|
||||||
|
Loading…
x
Reference in New Issue
Block a user