vsg-dev / vsgImGui

Integration of VulkanSceneGraph with ImGui
MIT License
43 stars 28 forks source link

How to add, change and update fonts? #69

Open robo-todd opened 3 months ago

robo-todd commented 3 months ago

Thanks for vsgImGui integration. It works fairly well in my project. However, it seems there is no way to change or add fonts other than the built-in default? I can load new ImGui fonts and rebuild the font Atlas, but I just get black/empty windows because there does not appear to be a way a user can upload a new texture.

What is the intended way to handle this? Do I need to make a derived class and override things in order to load more fonts?

robertosfield commented 3 months ago

The example has code for setting fonts

On Sat, 22 Jun 2024, 14:03 robo-todd, @.***> wrote:

Thanks for vsgImGui integration. It works fairly well in my project. However, it seems there is no way to change or add fonts other than the built-in default? I can load new ImGui fonts and rebuild the font Atlas, but I just get black/empty windows because there does not appear to be a way a user can upload a new texture.

What is the intended way to handle this? Do I need to make a derived class and override things in order to load more fonts?

— Reply to this email directly, view it on GitHub https://github.com/vsg-dev/vsgImGui/issues/69, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKEGUD2AROOLFXUNA3FPLTZIVYZHAVCNFSM6AAAAABJXNUGR2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3DOOBRGM4DAMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>