DearPyGui icon indicating copy to clipboard operation
DearPyGui copied to clipboard

I want to know how to make viewport titles display non-English characters.

Open nehonpa opened this issue 1 year ago • 1 comments

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

Image

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()


nehonpa avatar Feb 07 '25 03:02 nehonpa

Take a look at this comment: https://github.com/hoffstadt/DearPyGui/issues/2261#issuecomment-1904205762

v-ein avatar Feb 07 '25 06:02 v-ein