-
Notifications
You must be signed in to change notification settings - Fork 222
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
How to input Chinese? #48
Comments
Hey, I think that I won't be able to help you much with this issue. When you run the original ImGui demo, outside of the Unreal Engine, do you have the same issue or is it something specific to this Unreal integration? I believe there is another thread mentioning related problem but it look from it, that there wasn't a good solution. |
@Kill-Console I'm looking to add Japanese language support using UnrealImGui. Can you tell me how you were able to display Chinese characters? I found that I needed to modify the ImGuiContextManager so that the appropriate font, character set, and glyphs were loaded into the font atlas before the proxy was created. Any tips on the matter would be appreciated! |
You can always look at how I did it in UnrealNetImgui (look for the '
NETIMGUI_FONT_JAPANESE'
define)
UnrealNetImgui/NetImguiModule.cpp at master · sammyfreg/UnrealNetImgui ·
GitHub
<https://github.com/sammyfreg/UnrealNetImgui/blob/master/Source/Private/NetImguiModule.cpp>
*Steps done*
- Precompiled some Japanese fonts (using a tool I compiled from Dear ImGui
depot)
- Include the font glyphs in the source cpp as data array
- When loading each latin font, I append the Japaense glyph too
Note: You do not need to also compile the Japanese font, you can just take
my precompiled bin sources files.
…On Wed, Feb 8, 2023 at 2:07 PM DarienCaron ***@***.***> wrote:
@Kill-Console <https://github.com/Kill-Console>
Hello,
I'm looking to add Japanese language support using UnrealImGui. Can you
tell me how you were able to display Chinese characters? I found that I
needed to modify the ImGuiContextManager so that the appropriate font,
character set, and glyphs were loaded into the font atlas before the proxy
was created.
Any tips on the matter would be appreciated!
—
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AESBPY4HOURIA5IOJ3GUBUDWWMSZFANCNFSM4522O4DA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@Kill-Console |
After I call AddFontFromFileTTF to add a Chinese font, I can display Chinese
but the inputtext widget still can not input Chisese.
Any advice?
Thanks !
The text was updated successfully, but these errors were encountered: