Osiris icon indicating copy to clipboard operation
Osiris copied to clipboard

[Question]

Open JohnRichDev opened this issue 7 years ago • 4 comments

How do I change a menuitem's text font?

JohnRichDev avatar Apr 13 '19 14:04 JohnRichDev

Just look in the source

temper1840 avatar Apr 13 '19 18:04 temper1840

Does PushFont(); work?

JohnRichDev avatar Apr 14 '19 01:04 JohnRichDev

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.

danielkrupinski avatar Apr 18 '19 19:04 danielkrupinski

How to change font for Surface::printText ? or font size ?

NexSqaud avatar Apr 23 '19 13:04 NexSqaud