Skip to content

imgui v1.92.0 changes how font textures are handled #723

@kushalkolar

Description

@kushalkolar

imgui v1.92.0 removed font_atlas_get_tex_data_as_rgba32 so the font texture can no longer be obtained like this:

https://github.com/pygfx/wgpu-py/blob/d25edb102644f74c0d12e24996f757eac77b57fa/wgpu/utils/imgui/imgui_backend.py#L146C9-L146C20

They suggest moving to dynamic fonts, an example for the opengl backend is provided here:

https://github.com/pthom/imgui_bundle/blob/45da61745fc24c5ded350ea35e834dc9d73525fc/bindings/imgui_bundle/python_backends/opengl_base_backend.py#L45-L141

I can't dig into this right now, posting to document for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions