Font popup menu can't handle multiple displays with different resolution
Environment/Versions
- GIMP version: 2.99.11
- Package: local build master
- Operating System: macOS Monterey (M1)
Description of the bug
The font glyph renders appear to be being cached once rendered by the font popup menus, even when gimp has moved to a screen with a different DPI. This means that the glyphs render incorrectly.
In this screenshot you can see the glyphs that were first rendered on a lowDPI screen. The additional glyphs were only rendered on the HiDPI screen.
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Open Gimp on a low DPI screen (the opposite works as well)
- create an image
- place a text box on the image and delete text in the font box to cause the font popup list to appear
- drag the main gimp window to the hi DPI (retina) screen (or the opposite depending on what you did above)
- Now cause the font box to pop up again.
…
Expected result: Font glyphs should render correctly
Actual result: Font glyphs are incorrectly sized in the popup..
Additional information
If you have a backtrace for a crash or a warning, paste it here.