hoffstadt / hoffstadt/DearPyGui

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

Open
#2,471 1 comment 0 reactions 0 assignees View on GitHub
state: pending type: bug
Dominant language
C++
Stars
15.6k
Forks
783
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/user-attachments/assets/874c9c46-6ef0-40db-91dd-f1c9ce0a8118)

## Standalone, minimal, complete and verifiable example

```python
# 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()

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.