-
Notifications
You must be signed in to change notification settings - Fork 84
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
support input unicode character #45
Comments
I have no such plans at the moment. It wouldn't be such a big task to add API's and handling in Turbo Badger, but the actual platform integrations are a major pain to implement due to many undocumented behaviors of different input methods (i've done this before in proprietary software). |
I notice the display of text also doesn't support unicode. Would you like to add this support, e.g., for displaying Chinese text. |
It does. You just have to use a font that contains Chinese characters. |
looks like the default demo is not using freetype font. Which font file should I replace to see the result? |
You can define TB_FONT_RENDERER_STB or TB_FONT_RENDERER_FREETYPE to make it support true type fonts. The demo then loads resources/vera.ttf by default (which doesn't contain chinese). You can add another true type font file containing chinese and make it the default. All this is done in Demo/demo01/Demo01.cpp |
it works now. Thank you for your kind help. |
Currently it seems turbobadger doesn't support input unicode character (e.g., Chinese). Is there any plan to add this support? Thanks.
The text was updated successfully, but these errors were encountered: