You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per #5176, I'm trying to dynamically load new glyphs as needed in order to support arbitrary Unicode input. I was thinking I could:
Draw everything as usual
Right before calling ImGui::Render(), get a list of all characters rendered this frame, and rebuild the atlas
Call ImGui::Render()
Is that possible? If not, I suppose I could wrap every string I send to ImGui in a macro like IMGUI_STR(...) that manually keeps track of the characters. But that would be very tedious.
The text was updated successfully, but these errors were encountered:
None of which are a complete solution. If you decide to salvage that code you are on your own.
If you decide you want to try your own idea, you may modify ImDrawList::AddText() or ImFont::RenderText() to save all rendered characters somewhere and do your thing.
Your suggested suggestion wouldn't work anyway, if you rebuild the atlas before Render() all the submitted UV coordinates will be invalidated. One of the key element is #3761 which I would like to focus on soon.
Per #5176, I'm trying to dynamically load new glyphs as needed in order to support arbitrary Unicode input. I was thinking I could:
ImGui::Render()
, get a list of all characters rendered this frame, and rebuild the atlasImGui::Render()
Is that possible? If not, I suppose I could wrap every string I send to ImGui in a macro like
IMGUI_STR(...)
that manually keeps track of the characters. But that would be very tedious.The text was updated successfully, but these errors were encountered: