Merge pull request #303 from VladWinner/VladWinner-language-fonts

Optimization for additional fonts
This commit is contained in:
fed 2022-07-14 23:23:05 +00:00 committed by GitHub
commit e0219775d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -95,14 +95,14 @@ LUI.MenuBuilder.registerType("choose_language_menu", function(a1)
if (id == 5 or (id >= 8 and id < 12) or id == 17) then if (id == 5 or (id >= 8 and id < 12) or id == 17) 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 = 24 LUI.MenuGenericButtons.ButtonLabelFont.Height = 17
elseif (id == 12) then elseif (id == 12) then
LUI.MenuGenericButtons.ButtonLabelFont.Font = RegisterFont("fonts/noto_sans_arabic.ttf", 30) LUI.MenuGenericButtons.ButtonLabelFont.Font = RegisterFont("fonts/noto_sans_arabic.ttf", 30)
LUI.MenuGenericButtons.ButtonLabelFont.Height = 28 LUI.MenuGenericButtons.ButtonLabelFont.Height = 28
overrideyoffset = 0 overrideyoffset = 0
elseif (id == 15) then elseif (id == 15) then
LUI.MenuGenericButtons.ButtonLabelFont.Font = RegisterFont("fonts/noto_sans_kr.otf", 30) LUI.MenuGenericButtons.ButtonLabelFont.Font = RegisterFont("fonts/noto_sans_kr.otf", 30)
LUI.MenuGenericButtons.ButtonLabelFont.Height = 24 LUI.MenuGenericButtons.ButtonLabelFont.Height = 18
overrideyoffset = 0 overrideyoffset = 0
end end
end end