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

Rebinding Font to Support New Unicode Characters #2416

Open
rocwg opened this issue Nov 9, 2024 · 0 comments
Open

Rebinding Font to Support New Unicode Characters #2416

rocwg opened this issue Nov 9, 2024 · 0 comments
Labels
state: pending not addressed yet type: bug bug

Comments

@rocwg
Copy link

rocwg commented Nov 9, 2024

In DearPyGui, I’m experiencing an issue with dynamically loading Chinese characters. Initially, I load a subset of frequently-used characters, but when new characters are added dynamically (e.g., through lazy-loading or on-demand loading), they don’t render correctly and show as garbled text or “??”.

To address this, I attempted to reload and rebind the font with the updated character set each time new characters are detected. However, despite reloading, the new characters do not display properly, and previously loaded characters continue to display fine.

I would like to confirm:

  1. Does DearPyGui (or its underlying ImGui) support dynamically reloading and rebinding fonts to handle new characters during runtime?
  2. If so, what is the correct way to rebind the font so that new characters display correctly without recreating the entire font each time?

Any guidance on effectively updating the font to support additional characters without affecting performance or display would be greatly appreciated.

Snipaste_2024-11-09_12-47-25

@rocwg rocwg added state: pending not addressed yet type: bug bug labels Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: pending not addressed yet type: bug bug
Projects
None yet
Development

No branches or pull requests

1 participant