DearPyGui
DearPyGui copied to clipboard
I want to know how to make viewport titles display non-English characters.
I want to know how to make viewport titles display non-English characters.
Version of Dear PyGui
Version:1.11 Operating System:Windows 11
My Issue/Question
I want to know how to make the viewport title display non-English characters, not those in the control, but the outermost window of Windows. Even with the addition of a character set, it still doesn't work.
To Reproduce
Steps to reproduce the behavior: run code
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots/Video
Standalone, minimal, complete and verifiable example
# Here's some code anyone can copy and paste to reproduce your issue
import dearpygui.dearpygui as dpg
import time
dpg.create_context()
dpg.show_metrics()
def cc():
global fps
fps = dpg.get_value("x")
dpg.bind_font("diyi")
# 创建一个窗口
with dpg.window(label="Reduce GPU Usage"):
dpg.add_text("This is a low-refresh-rate window.")
dpg.add_slider_int(default_value=60,min_value=20,max_value=3000,callback=cc,tag="x")
dpg.create_viewport(title='中文', width=700, height=700,vsync=False)
dpg.setup_dearpygui()
dpg.show_viewport()
fps = 6000
while dpg.is_dearpygui_running():
dpg.render_dearpygui_frame()
interval = 1 / fps
time.sleep(interval)
dpg.start_dearpygui()
dpg.destroy_context()
Take a look at this comment: https://github.com/hoffstadt/DearPyGui/issues/2261#issuecomment-1904205762