Osiris
Osiris copied to clipboard
[Question]
How do I change a menuitem's text font?
Just look in the source
Does PushFont(); work?
Use below code to change menu font:
ImGuiIO& io = ImGui::GetIO();
io.Fonts->AddFontFromFileTTF(C:/Windows/Fonts/Tahoma.ttf, /* path to font */, 16.0f /* font size */);
To change font of menu element use ImGui::PushFont() function.
How to change font for Surface::printText ? or font size ?