-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
Purpose
I want to include CJK characters in my figure name
The text inside control UI menu was messed up
Current workaround
I did set font for pygfx to enforce it render CJK with a local font file
from pygfx.utils.text import font_manager, FontProps
font = font_manager.add_font_file(
"fonts/fusion-pixel-12px-proportional-zh_hans.ttf"
)
font_manager._default_font_props = FontProps(
font.family,
style="normal",
weight="regular",
)But looking into the source code, I think I cannot set default font for ImGui similarly, it must be passed to Figure.__init__
Metadata
Metadata
Assignees
Labels
No labels