Font squeezing broken for fonts with extra kerning

Hi,

From JUCE 8, font squeezing is buggy for fonts with an extra kerning factor using the code
label.setFont(juce::FontOptions(15.0).withKerningFactor(0.1f))

During squeezing, it strips of the last character.

This is how a squeezed font used to look with JUCE 7.0.12:
Screenshot 2024-10-11 at 20.36.51

This is how the squeezed font look with JUCE 8.0.2:
Screenshot 2024-10-11 at 20.36.56

In a client project many labels show up without the last character, which is not good. A fix would be appreciated ;).

Thanks,
Jelle

Is this issue seen by JUCE team?

Yes, thank you for reporting this issue. We are working on this right now.

1 Like

A fix is now out on develop

1 Like