microsoft / MixedReality-UXTools-Unreal

UX tools and components for developing Mixed Reality applications in UE4.
https://microsoft.github.io/MixedReality-UXTools-Unreal/
MIT License
316 stars 86 forks source link

Hello, how do the button labels display in Chinese? #37

Open YiRonger opened 3 years ago

YiRonger commented 3 years ago

Hello, how do the button labels display in Chinese?

Cameron-Micka commented 3 years ago

Hi @YiRonger, this is a great question. The fonts currently included with UX Tools only support a handful of Latin characters. But, if you want to support other character sets (like Chinese) you will need to import a new font. We have some instructions here on how to import a new font: https://github.com/microsoft/MixedReality-UXTools-Unreal/blob/public/0.12.x/Docs/Text.md#importing-a-new-font

Once you have a new font imported all you need to do is specify the font on the Button's Font property under the Label Text Brush section.

If you have trouble locating a font with the characters you need, this is always a good resource for many languages: https://www.google.com/get/noto/

Note, it can be difficult to generate offline fonts in Unreal with large character sets. If you hit an issue generating an offline font for Chinese please let me know and I can point you towards how you might accomplish this with a runtime font (which is a bit more work and requires UMG).