potatoengine / potato

Hobby C++ game engine
MIT License
38 stars 2 forks source link

Robust font management #306

Open seanmiddleditch opened 2 years ago

seanmiddleditch commented 2 years ago

We are currently assuming that fonts loaded in a particular order will result in our hard-coded UpFont values matching the indices of imgui's font list vector.

We should make this robust so that any changes to font load order or imgui internals won't break fonts.