Suggested code for multiple fonts support #49
Closed
NustyFrozen
started this conversation in
Ideas
Replies: 1 comment
-
|
this is now completed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Overlay.cs:
Removed:
added:
ImGuiRenderer.cs
Added:
Usage:
something to notice is that it takes 1 frame to add the fonts since RunInfiniteLoop calls ReplaceFontIfRequired after rendering
so if you call InitializeFonts in render you'll need to account for it that the first time after calling this.getFontByLabel("Font") == ImGui.GetIO().FontDefault
Beta Was this translation helpful? Give feedback.
All reactions