hoffstadt / hoffstadt/DearPyGui

The viewport title appears as garbled characters in Chinese

Open
#2,261 6 comments 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 have currently set the viewport title to Traditional Chinese. The Chinese displayed within the window is correct. However, I've noticed that the Chinese display becomes garbled in the title bar and the name when the application is minimized. Is there any way to fix this issue?

```python
import dearpygui.dearpygui as dpg
import dearpygui.dearpygui as dpg
dpg.create_context()

reg = dpg.add_font_registry()
fontName = dpg.add_font(file="C:\Windows\Fonts\msjh.ttc", size=18, parent=reg)
dpg.add_font_range(0x0001, 0x9FFF, parent=fontName)
dpg.bind_font(fontName)
with dpg.window():
dpg.add_button(label='測試')
dpg.create_viewport(title="測試", width=1000, height=500)
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()

```

![image](https://github.com/hoffstadt/DearPyGui/assets/56857736/de5e6e09-c4d6-47e6-9b8a-6608793660d2)
![image](https://github.com/hoffstadt/DearPyGui/assets/56857736/0e9897a4-4e3b-4af4-aec5-5f59dcf593b3)

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.