-
-
Notifications
You must be signed in to change notification settings - Fork 706
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Chinese path support for select_directory_dialog #299
Comments
add_additional_font('WeiRuanYaHei.ttf', 18, glyph_ranges='chinese_simplified_common') to clarify. I've add this in front of all my code. this seems to be the problem of ImGui, I found a solution of this from :https://www.joven.top/archives/192 But I don't know how to implement this. ImGuiIO& io = ImGui::GetIO();
ImFont* font = io.Fonts->AddFontFromFileTTF("Resources/Fonts/zhankuwenyiti.ttf", 22.0f, NULL, io.Fonts->GetGlyphRangesChineseFull()); |
Looking into it but we already do the solution you mentioned. |
This appears to be an issue related to ImGuiFileDialog. Still looking into it more. |
Should work in 0.7! |
Unfortunately, I think it remains 0.8.0. My system info is DearPyGui Version: 0.8.0 (pip install) To reproduce, share my code
I think i used "font", "font_registry" and "add_font_range_hint" to use Korean characters properly. But the Korean characters disappeared in "add_file_dialog". ttf or otf formats had a same issue. |
Will look into it again! |
Switched to high priority. |
@Pcothren |
@hoffstadt |
@hoffstadt |
I now using xdialog as an instead method.Those who has the same problem can check this. |
Regarding the crashes I've added some info to #2057. |
MARK! Waiting for response... |
Waiting for solution too. |
Version of Dear PyGui:
[DearPyGui Version] 0.5.53
[Python Version] 3.9.0
[DearImGui Version] 1.79
[Compiler] MSVC version 1927
OS
Operating System: Windows 10
My Issue/Question
You can see the path with Chinese character is appear as ?? even I tried
add_additional_font('WeiRuanYaHei.ttf', 18, glyph_ranges='chinese_simplified_common')
which only solve the main interface supporting not the select_directory_dialog.
if path with this is selected, DPG will exit without raising any Exception.
I try to dig into the source code of select_directory_dialog in dearpygui, but could not found it.
A clear and concise description of what the issue/question is. Please provide as much context as possible.
To Reproduce
try to create a director with charactor "我的程序", and using select_directory_dialog to select it and press OK.
Expected behavior
normal
Screenshots/Video
see above
Standalone, minimal, complete and verifiable example:
The text was updated successfully, but these errors were encountered: