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

Typing problem, slowly and with warning #2357

Open
riverklause opened this issue Jul 8, 2024 · 0 comments
Open

Typing problem, slowly and with warning #2357

riverklause opened this issue Jul 8, 2024 · 0 comments
Labels
state: pending not addressed yet type: bug bug

Comments

@riverklause
Copy link

##Version of Dear PyGui

Version: 1.11.1
Operating System: Windows 11 build 22631.3810

##My Issue/Question

when i typed chinese words with a chinese input software(sogou input method) in input_text box, the typing rate was very slowly. At the same time, i got a warning: "libpng warning: iCCP: known incorrect sRGB profile".(shown as picture 1)
Then i change to Microsoft Chinese input software, i found the typing rate had a little improvement, and the warning “libpng warning: iCCP: known incorrect sRGB profile” was dispeared. But there was a new problem, the input method showed a different
candidate word window. (shown as picture 2) The usually candidate word window was shown as picture 3.

Screenshots/Video

picture 1:
1
picture 2:
2
picture 3:
3

Here's some code anyone can copy and paste to reproduce your issue

mport dearpygui.dearpygui as dpg

dpg.create_context()
with dpg.font_registry():
with dpg.font("C:\WINDOWS\FONTS\SIMYOU.TTF", 14) as font1:
dpg.add_font_range_hint(dpg.mvFontRangeHint_Chinese_Full)
dpg.bind_font(font1)

dpg.create_viewport(title='Custom Title', width=600, height=300)

with dpg.window(label="Example Window"):
dpg.add_text("Hello, world你好")
dpg.add_button(label="Save")
dpg.add_input_text(label="string", default_value="狐狸Quick brown fox")
dpg.add_slider_float(label="float", default_value=0.273, max_value=1)

dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()

@riverklause riverklause added state: pending not addressed yet type: bug bug labels Jul 8, 2024
@riverklause riverklause changed the title Typing problem, slowly and with caution Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: pending not addressed yet type: bug bug
1 participant