Hi, I’ve recently added some alternative LookAndFeel classes to a project I’ve been working on and I’ve noticed issues with font rendering when the LookAndFeel changes. Each look and feel implementation calls setDefaultSansSerifTypefaceName with a different font in its constructor, switching the LookAndFeel at runtime results in this:
→ ![]()
I’ve only tested this on macOS 26 but I think it’s likely to be present on other platforms too.
After investigating, Graphics::drawText and Graphics::drawFittedText appear to be using stale glyph arrangements. I’ve applied a fix on a local fork of JUCE that clears the GlyphArrangementCache in Typeface::clearTypefaceCache()and this seems to resolve the issue .
The issue is present on the latest version of JUCE on the develop branch
