OsirisAndExtra icon indicating copy to clipboard operation
OsirisAndExtra copied to clipboard

I'm having trouble changing the font for the logs

Open SightDev opened this issue 2 years ago • 4 comments

I'm trying to change the font for the logs and when I use ImGui documentation I use

ImGuiIO& io = ImGui::GetIO(); io.Fonts->AddFontFromFileTTF("myfont.ttf", 9);

any ideas?

SightDev avatar Aug 26 '22 01:08 SightDev

Try adding the font like in GUI.cpp fonts.example = io.Fonts->AddFontFromFileTTF("font", 35.f); then call it through ImGui::PushFont(fonts.example) //code ImGui::PopFont();

KoiHooks avatar Nov 28 '22 20:11 KoiHooks

It crashes when I do that

SightDev avatar Dec 07 '22 00:12 SightDev

It crashes when I do that

make sure the font is right, or add through byte array. if that fails, just debug

KoiHooks avatar Dec 14 '22 12:12 KoiHooks

yh I gotta debug mb ps sorry for the late responce

SightDev avatar Apr 30 '23 19:04 SightDev