Closed xiejiangzhi closed 2 years ago
I try call PushFont without params, it also crash. In the source code https://github.com/ocornut/imgui/blob/1ee252772ae9c0a971d06257bb5c89f628fa696a/imgui.cpp#L7370
if not font, it will use default font.
It also working in the debugger page. but the PushFont
function will crash.
https://github.com/ocornut/imgui/issues/3621
Oh, shit, because I call PushFont before NewFrame
.
cimgui-love
is a great project.
I'm glad you figured it out!
I saw the README that telling me how to change the global default font.
If I just want to change a button font, I didn't find a way.
I have tried use PushFont, but it waill directly crash my game.
some crash log
append font code to readme example , 'SFNS.ttf' is a MacOS font I copied from system Fonts folder
ENV: cimgui-love 1.87-1 love2d: 11.4