-
Notifications
You must be signed in to change notification settings - Fork 23
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
unable to use custom font #22
Comments
Fantastic! Thank you so much. I'll keep that in mind when using cimgui and check default values in the C++ API. I was getting a crash using designated initializers before the proper default values were in there, so I thought that was breaking things somehow. Anyway, thank you! |
You can create an ImFontConfig* which is correctly initialized with ImFontConfig_ImFontConfig() |
I think I may have been a little mixed up here, but cimgui in this repo is generated in a different manner than the cimgui here right? I'm new to this library and trying to follow the trail of the different bindings. Apologies to all who I may have confused in my own confusion. |
Yes the Dear ImGui bindings used in the cimgiui-sokol-starterkit repo are generated with the Dear ImGui approach. I just used the 'ig' prefix and the cimgui library name so I only had to change the few differences between the original cimgui bindings and the Dear ImGui bindings. |
Got it! And so relating to the missing constructor in this repository, I guess this is a whole thing with dearbindings. I understand things are changing quickly so I'll try not to annoy people any further while I'm figuring this stuff out. Thanks! |
Hi, not sure if this is the best place to post, but I'm struggling trying to adapt the demo to use a custom font. I've attempted to pull the relevant code from imgui-highdpi-sapp.cc in the sokol-samples repo and adapt it to C (and copied over the header with font data). I can build and run the demo, but all text is missing. As in there's not even empty space or white blocks where text should be, just nothing at all. I'm sure I'm misunderstanding something, but this looks to me like it should work. Thank you!
edit: I cleaned up the fontCfg struct a little
The text was updated successfully, but these errors were encountered: