-
Notifications
You must be signed in to change notification settings - Fork 88
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot load a font during frame rendering #53
Comments
Hi, Thanks for sharing your demo code, it makes it easier to answer. Fonts need to be loaded at the appropriate moment during initialization. I updated a demo example to showcase how to load fonts. First, you will need to create a function (or lambda) for loading the font: hello_imgui/src/hello_imgui_demos/hello_imgui_demo_classic/hello_imgui_demo_classic.main.cpp Lines 4 to 11 in 0a2859a
Then, you need to use RunnerParams and fill the correct callback: hello_imgui/src/hello_imgui_demos/hello_imgui_demo_classic/hello_imgui_demo_classic.main.cpp Lines 15 to 22 in 0a2859a
And then use the font: hello_imgui/src/hello_imgui_demos/hello_imgui_demo_classic/hello_imgui_demo_classic.main.cpp Lines 40 to 43 in 0a2859a
|
Thank you very much for your great help! |
Hello馃憢!
I want to load a ttf font into hello_imgui,but it can't work;
猬団瑖It likely load success,but it show "unknown".
And when i select it,my program will crash ( show: 18762 segmentation fault (core dumped) ./hello_world ).
_example_integration.zip
The text was updated successfully, but these errors were encountered: