slages / love-imgui

imgui module for the LÖVE game engine
MIT License
321 stars 61 forks source link

Cannot change default font at runtime #33

Closed gdinit closed 4 years ago

gdinit commented 5 years ago

I recently found about Love2D, Lua, and this library and quite happy to play with my small app these days and tonight I wanted to add UpArrow/DownArrow = change font size functionality.

I quickly discovered, this binding does not have ImFont, ImAtlas etc. which in turn means there is no way to easily add and use new fonts (unless I'm mistaken somehow?). After much googling I just added it myself, it's hacky but seems to work. Sharing in a pull request, in case someone else finds this useful.

There is a gist pseudo code in the pull request.

gdinit commented 5 years ago

Pull Request added: https://github.com/slages/love-imgui/pull/32

gdinit commented 5 years ago

I closed my PR referenced above as slages (owner) advised he is not interested in hacking embedded imgui.

However I shall leave this issue open, as it still is true and I believe it is an issue albeit a feature request.

gdinit commented 4 years ago

Looks like this has been merged back in March (sorry, didn't check back since). Closing the issue.

Thank you for the contribution & the merge!