Open Evolution0 opened 1 year ago
After some experimentation I'm guessing that not only did I misunderstand how binding fonts to a specific widget worked but it might not be possible to do what I want to do. Binding a font to a tab itself means everything in that tab gets the same font, problem is many icon fonts are made with the rest of the blocks entirely empty and just icons in the Private Use Area, this means any regular text inside the tab will be blank.
I've attempted to set a base font with a font registry and parent to it when loading the icon font but that does not seem to help.
I could be and am probably missing something, I'm pretty new to using imgui in general, everything has been smooth sailing and easy to understand so far other than this.
Version of Dear PyGui
Version: 1.9.0 Operating System: Windows 10 Pro 22H2
My Issue/Question
Attempting to bind an icon font to a tab button causes the application to crash.
It is possibly to correctly display this font other ways just fine, for example as a basic line of text. (see L29, run with L32 commented)
To Reproduce
Minimal example that reproduces the issue:
Expected behavior
The label of the
tab_button
should show the icon font. As a side note this works perfectly fine on tabs themselves, just nottab_button
s. boxicons.zip