You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot use custom fonts - any attempt to include dpg.font_registry() into the code leads to crash with message:
-[MTLTextureDescriptorInternal validateWithDevice:]:1357: failed assertion `Texture Descriptor Validation
MTLTextureDescriptor has width of zero.
MTLTextureDescriptor has height of zero.
importdearpygui.dearpyguiasdpgdpg.create_context()
# add a font registrywithdpg.font_registry():
# first argument ids the path to the .ttf or .otf filedefault_font=dpg.add_font("NotoSerifCJKjp-Medium.otf", 20)
second_font=dpg.add_font("NotoSerifCJKjp-Medium.otf", 10)
withdpg.window(label="Font Example", height=200, width=200):
dpg.add_button(label="Default font")
b2=dpg.add_button(label="Secondary font")
dpg.add_button(label="default")
# set font of specific widgetdpg.bind_font(default_font)
dpg.bind_item_font(b2, second_font)
dpg.show_font_manager()
dpg.create_viewport(title='Custom Title', width=800, height=600)
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
The text was updated successfully, but these errors were encountered:
-[MTLTextureDescriptorInternal validateWithDevice:]:1357: failed assertion `Texture Descriptor Validation
MTLTextureDescriptor has height (32768) greater than the maximum allowed size of 16384.
Version of Dear PyGui
Version: 1.11.1
Operating System: macOs 14.5
My Issue/Question
Cannot use custom fonts - any attempt to include dpg.font_registry() into the code leads to crash with message:
-[MTLTextureDescriptorInternal validateWithDevice:]:1357: failed assertion `Texture Descriptor Validation
MTLTextureDescriptor has width of zero.
MTLTextureDescriptor has height of zero.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected normal usage.
The text was updated successfully, but these errors were encountered: