mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 17:14:42 -04:00
Fixed Noto font not being used for Chinese characters, when the user's System Language is not "zh_TW"
This commit is contained in:
parent
1e58fb6911
commit
cf8229a4ae
2 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ func _ready() -> void:
|
|||
else: # If the user doesn't have a language preference, set it to their OS' locale
|
||||
TranslationServer.set_locale(OS.get_locale())
|
||||
|
||||
if TranslationServer.get_locale() == "zh_TW":
|
||||
if "zh" in TranslationServer.get_locale():
|
||||
theme.default_font = preload("res://Assets/Fonts/NotoSansCJKtc-Regular.tres")
|
||||
else:
|
||||
theme.default_font = preload("res://Assets/Fonts/Roboto-Regular.tres")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue