[Juce 8] Different font rendering between Label and TextEditor

When porting from Juce 7 to 8, I noticed that bits of text were looking blurry on Windows.

It seems like the font rendering between Labels and TextEditors is different, at least for the font I use (Roboto).

Here is a screenshot with Juce 8 on Windows 11. Labels are on left and editors on right, with Roboto Regular heights 11, 12, 13, using the FontOptions constructor. Hinting seems missing on the labels, whereas the editors display the rendering I expect.

On Juce 7 the rendering is obviously different because of the software engine, but it was consistent between labels and editors. Here is the same example built with Juce 7:

I don’t reproduce any issue with the default system font. Using Graphics::drawText gives the same result as the label.

Is it a bug or am I missing something?

I’ve just stumbled upon the same issue! So I think I can confirm this is a bug.

Here’s with a custom font (Jersey 10, free at Google Fonts) in a juce::Label (zoomed in to see the pixels) to the left, and when text editing in the label is enabled, to the right:

There’s definitely something iffy going on here. (I actually like the less blurry look of the TextEditor here, but that’s purely stylistic).

Is there a way to force these to render identically, does anyone know?

difference between juce::Graphics::drawText and TextLayout ?