mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-30 14:48:56 +07:00
change chinese font to "WenQuanYiMicroHei" (#691)
* Update Translations.json * Update Translations.json * Update Tutorials_Simplified_Chinese.json * Update Tutorials_Simplified_Chinese.json * Update Translations.json * Update Tutorials_Simplified_Chinese.json * Update Translations.json * Update Translations.json * Update Translations.json * Update Translations.json * Update Tutorials_Simplified_Chinese.json * Update Translations.json * Update Translations.json * Update Tutorials_Simplified_Chinese.json * Update Tutorials_Simplified_Chinese.json * Update Tutorials_Simplified_Chinese.json * Add files via upload * Update Tutorials_Simplified_Chinese.json * Update Translations.json * Update Translations.json * Update Tutorials_Simplified_Chinese.json * Update Translations.json * Update Translations.json * Update BasicHelp_Simplified_Chinese.json * Update Translations.json * Update Translations.json * Update Tutorials_Simplified_Chinese.json * Chinese traslation, i have test it,but app may get corruption. * constructing buildings and wonders in the city the language shows normally according to language setting * Update Translations.json * Update Translations.json * Update Translations.json * Update Translations.json * change chinese font with WenQuanYiMicroHei * Update Translations.json
This commit is contained in:

committed by
Yair Morgenstern

parent
28cc905bb5
commit
c8ea9f1a27
@ -20,7 +20,7 @@ class Fonts {
|
||||
else return "Arial"
|
||||
}
|
||||
|
||||
val chineseFont = "SimSun"
|
||||
val chineseFont = "WenQuanYiMicroHei"
|
||||
|
||||
fun getCharsForFont(font: String): String {
|
||||
val defaultText = "ABCČĆDĐEFGHIJKLMNOPQRSŠTUVWXYZŽaäàâăbcčćçdđeéfghiîjklmnoöpqrsșštțuüvwxyzž" +
|
||||
@ -71,7 +71,7 @@ class Fonts {
|
||||
|
||||
val localPath = "fonts/$font.ttf"
|
||||
if (font == chineseFont)
|
||||
download("https://github.com/micmro/Stylify-Me/raw/master/.fonts/SimSun.ttf", localPath)
|
||||
download("https://github.com/layerssss/wqy/raw/gh-pages/fonts/WenQuanYiMicroHei.ttf", localPath)//This font is licensed under Apache2.0 or GPLv3
|
||||
}
|
||||
|
||||
fun getFont(size: Int): BitmapFont {
|
||||
|
Reference in New Issue
Block a user