Skip to content

How to support IME in web assembly #4910

Open
@huison-cao

Description

@huison-cao

examples/example_emscripten_opengl3/main.cpp:
96: #ifndef IMGUI_DISABLE_FILE_FUNCTIONS
97: io.Fonts->AddFontFromFileTTF("fonts/simhei.ttf", 13.0f, NULL, io.Fonts->GetGlyphRangesChineseSimplifiedCommon());
98: //io.Fonts->AddFontFromFileTTF("fonts/Roboto-Medium.ttf", 16.0f);

compile && emrun --no_browser web
http://127.0.0.1:6931

can display chinese font, bu can't input chinese text, why?
if run in windows(not web), then imgui can input chinese text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions