Godot shows Chinese

  • Godot's default control does not display Chinese and needs to be set.
  • Select a Chinese font from the font directory (C:\Windows\Fonts), such as "Heibody".
  • Go to the Godot editor and drag the font into the Godot file system.

  • Right-click to create a new resource, enter font in the search bar, then select DynamicFont to create it, and set its Font property to the ttf font prepared in the first step.

  • Select the "Project" menu, "Project Settings" option, click the search button in the pop-up interface, enter font in the input box, then select the "Theme" option under "GUI", and set the just created one in "Custom Font" Font resources.

 

  •  Finally, create a Label in the scene and enter Chinese. If it can be displayed, it means the setting is correct.

 

Guess you like

Origin blog.csdn.net/u013404885/article/details/119970015