I’m currently working on a sample app using Magnum and Dear ImGui to use as a base for a project I’m contributing to.
Since I want to use a custom font, I use the following code to load it:
ImGuiIO& io = ImGui::GetIO(); io.Fonts->AddFontFromFileTTF("font.ttf", 16.0f, nullptr, io.Fonts->GetGlyphRangesDefault()); io.Fonts->Build();
But when I run my app, I’m greeted with this:
Should I use an
ImFontConfig object to fix it, or should I do something else ?
EDIT: I forget to add that I actually check if the returned pointer is equal to
nullptr or not, and if
Build()'s return value is