Selaa lähdekoodia

Merge pull request #4345 from Calinou/i18n-default-project-font

Document font requirement for some languages in Internationalizing games
Nathan Lovato 4 vuotta sitten
vanhempi
commit
e28d9a1a5f
1 muutettua tiedostoa jossa 15 lisäystä ja 0 poistoa
  1. 15 0
      tutorials/i18n/internationalizing_games.rst

+ 15 - 0
tutorials/i18n/internationalizing_games.rst

@@ -65,6 +65,21 @@ translations and convert it if found:
     level.set_text(tr("LEVEL_5_NAME"))
     status.set_text(tr("GAME_STATUS_" + str(status_index)))
 
+.. note::
+
+    If no text is displayed after changing the language, try to use a different
+    font. The default project font only supports a subset of the Latin-1 character set,
+    which cannot be used to display languages like Russian or Chinese.
+
+    A good resource for multilingual fonts is `Noto Fonts <https://www.google.com/get/noto/>`__.
+    Make sure to download the correct variation if you're using a less common
+    language.
+
+    Once you've downloaded the font, load the TTF file into a DynamicFont
+    resource and use it as a custom font of your Control node. For better
+    reusability, associate a new a Theme resource to your root Control node and
+    define the DynamicFont as the Default Font in the theme.
+
 Making controls resizable
 --------------------------