Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTF-8 font initialize incorrectly in window just aftrer dearpygui starts #981

Open
yubeizhu opened this issue Jun 30, 2021 · 1 comment
Open
Labels
platform: MacOS MacOS specific issue state: pending not addressed yet

Comments

@yubeizhu
Copy link

Version of Dear PyGui

Version: after 0.8.0
Operating System: MacOS

My Issue/Question

When I use utf-8 font, and specify both "width" & "height" properties of a window, the font in that window will all be "question mark" just after dearpygui starts. In a short time, all fonts display normal.

To Reproduce

# Here's some code anyone can copy and paste to reproduce your issue
import dearpygui.dearpygui as dpg
with dpg.font_registry(  )  :
    f = "/tmp/SimSun.ttf"
    with dpg.font( file = f, size = 16, default_font = True   ):
        dpg.add_font_range_hint(dpg.mvFontRangeHint_Chinese_Full)

with dpg.window( label = "主窗口" ,height = 900, width = 300 ) as w_id:
  ...

dpg.start_dearpygui()

The font will be normal when I only specify one of "width" or "height".

# Here's some code anyone can copy and paste to reproduce your issue
import dearpygui.dearpygui as dpg
with dpg.font_registry(  )  :
    f = "/tmp/SimSun.ttf"
    with dpg.font( file = f, size = 16, default_font = True   ):
        dpg.add_font_range_hint(dpg.mvFontRangeHint_Chinese_Full)

with dpg.window( label = "主窗口" ,pos = [0,0], width = 300 ) as w_id:
  ...

dpg.start_dearpygui()

Thanks!

@hoffstadt
Copy link
Owner

Interesting issue. We will look into this and resolve it as soon as possible. Thank you for reporting.

@hoffstadt hoffstadt added state: pending not addressed yet and removed need to verify labels Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: MacOS MacOS specific issue state: pending not addressed yet
2 participants