Added option to select font size (#7238)

This commit is contained in:
alexban011
2022-06-25 14:46:12 +03:00
committed by GitHub
parent 8047278d80
commit 51ba657b75
6 changed files with 31 additions and 5 deletions

View File

@ -722,6 +722,7 @@ Translation files are generated successfully. =
Fastlane files are generated successfully. =
Please note that translations are a community-based work in progress and are INCOMPLETE! The percentage shown is how much of the language is translated in-game. If you want to help translating the game into your language, click here. =
Font family =
Font size multiplier =
Default Font =
You need to restart the game for this change to take effect. =

View File

@ -52,7 +52,7 @@ open class AndroidLauncher : AndroidApplication() {
val androidParameters = UncivGameParameters(
version = BuildConfig.VERSION_NAME,
crashReportSysInfo = CrashReportSysInfoAndroid,
fontImplementation = NativeFontAndroid(Fonts.ORIGINAL_FONT_SIZE.toInt(), fontFamily),
fontImplementation = NativeFontAndroid((Fonts.ORIGINAL_FONT_SIZE * settings.fontSizeMultiplier).toInt(), fontFamily),
customFileLocationHelper = customFileLocationHelper,
platformSpecificHelper = platformSpecificHelper
)