-
Couldn't load subscription status.
- Fork 343
Description
Hey @mellinoe, sorry for piling on the bugs lately!
I'm using the latest beta of ImGui, and am loading a font via:
ImGui.GetIO().Fonts.AddFontFromFileTTF($"fonts\\ComicSansMS.ttf", 14.0f);Using comic sans as it's the most obvious to see if the font changed successfully, from a visual perspective. The call to AddDefaultFont() is commented out.
- Expected outcome: text displayed using the comic sans font.
- Actual outcome: text displayed using the default ImGui font.
I used the same example as I did in this bug report (your Monogame sample, but using the Nuget packages), with the only change being adding the font, a post build step to copy the fonts to the bin directory and the call to AddFrontFromFileTTF().
Loading a ttf font worked fine for me before switching to the beta version of ImGui. I've already committed to changing my code to use the new ImGui beta, so I'd prefer to stick with it, as the changes in the beta are great.
- ImGui version:
1.65.0-beta1 - MonoGame version:
3.7.0.7
ImGui.NET.SampleProgram.XNA_Font_Issue.zip
Thank you