-
-
Notifications
You must be signed in to change notification settings - Fork 706
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Chinese character missing #351
Comments
try:glyph_ranges='chinese_full' |
Many thanks. It turn out to be I didn't take a good read of the documentation:) |
Well, later on today, I tried use glyph_ranges='chinese_full' to get full load of Chinese characters. The bad news is that when I run the application the DearPyGui main window pop up with a white screen then maybe 5 seconds later it closed itself for some reason. from dearpygui.core import *
from dearpygui.simple import *
add_additional_font('STSONG.ttf', 18, glyph_ranges="chinese_full")
def file_picker(sender, data):
open_file_dialog(callback=apply_selected_file, extensions=".*,.py")
def apply_selected_file(sender, data):
log_debug(data)
directory = data[0]
file = data[1]
set_value("目录", directory)
set_value("文件", file)
set_value("文件路径", f"{directory}\\{file}")
show_logger()
with window("Tutorial"):
add_button("文件选择器", callback=file_picker)
add_text("目录路径: ")
add_same_line()
add_label_text("##filedir", source="目录", color=[255, 0, 0])
add_text("文件: ")
add_same_line()
add_label_text("##file", source="文件", color=[255, 0, 0])
add_text("文件路径: ")
add_same_line()
add_label_text("##filepath", source="文件路径", color=[255, 0, 0])
start_dearpygui() |
There is issue #299 about some bug with file picker. |
We will be replacing the file dialog system. This bug is in their library. |
Closing for now. This is on our todo. |
Version of DearPyGui:
[DearPyGui Version] 0.6.24
[Python Version] 3.8.1
OS
Operating System: Windows 10
My Issue/Question
Even if I tried use add_additional_font('simher.ttc', 16, glyph_ranges='chinese_simplified_common') to add Chinese font support but still have some of the words are displayed "?".
To Reproduce
try to display a text with character "鸢尾花" in DearPyGui.
According to (https://www.joven.top/archives/192), glyph_ranges='chinese_simplified_common', this is to load only commonly used Chinese characters. It is the reference of 2500 Chinese characters on Wikipedia. However, the current number of commonly used Chinese characters is 3500, so there are 1000 not support. But in Dear ImGui this issue could be solved with io.Fonts->GetGlyphRangesChineseFull();.
The text was updated successfully, but these errors were encountered: