0 votes

Rich Text, GDScript can not enter Chinese?!
Make chat rooms, send messages, but can not enter Chinese?!

in Engine by (12 points)

1 Answer

+1 vote

You need a font file which contains Chinese characters.

For RichTextLabel

  1. Import > Font
  2. Select font file which has Chinese character at Source Font.
  3. Choose destination folder at Dest Resource.
  4. Choose Character Set > Mode > Unicode
  5. Load imported font file at RichTextLabel > Custom Fonts > Normal Font

For GDScript

1~4. do same 1~4 as above
5. Settings > Editor Settings > Global > Font
6. Load imported font
7. Restart editor

by (9,798 points)

OK, I can enter Chinese, thank you~

select best answer if all problems are solved. :)

Will the fonts be deployed with the application in the export?

Yes, if it's located anywhere under res://

Thanks. Do you know if it installs the font or if the application loads it independently from the system? Yet I guess the later case is more probable.

We call it as Font, but it's actually image (texture).
Godot imports font as a image, and use it on runtime.
So, it's the later case.

Sorry, I can't input chinese, I'm debian user.

When I paste up text, it show you "\u5982\u4f55\u770b\u5f85\u9aa8\u\u5982\u4f55\u770b\u5f85\u9aa8\u9abc\u52a8\u753b\u7f16\u8f91\u5668".

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.