Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

语言显示 #1

Open
cai620 opened this issue Jun 26, 2021 · 1 comment
Open

语言显示 #1

cai620 opened this issue Jun 26, 2021 · 1 comment

Comments

@cai620
Copy link

cai620 commented Jun 26, 2021

我发现程序并不支持显示中文。这是为什么?
如何才能让它可以支持中文显示?

@RblSb
Copy link
Member

RblSb commented Jul 2, 2021

Find if(code == "ru") { code line in kha.js file. You need to khm_Lang.fontGlyphs.push(id); all chinese unicode ids to array here in for or while cycle (not sure if game framework will handle too much of hieroglyphs tho). You also need to replace ttf font file to another, with chinese chars inside.
There for example character code for ё (added in code as khm_Lang.fontGlyphs.push(1105);): https://unicode-table.com/en/0451/

This was referenced Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants