Skip to content

Text buggy with immediate viewports across monitors with different scales #3664

@emilk

Description

@emilk

if you have two monitors with different native scales, then immediate viewports will cause the text to look messed up for the parent viewport:

image

I'm not sure why this is not a problem for deferred viewports; it's likely some state that is not properly restored when switching to/from an immediate viewport child.

The solution requires having one Fonts per specific pixels_per_point in Context.
We also need to do book-keeping of changes to the font atlas texture in a new, better way.
We really should use different font ids for the textures for the different pixels_per_point, but that will require a pretty deep change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is brokenviewportsmultiple viewports, viewports API

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions