Bold/italic issue with default font on macOS

Hi,

Using JUCE 8 develop, the default font switches to “Bold+Italic” when I request it to be italic. This can be reproduced for example in DemoRunner WidgetsDemo.h , using setItalic(true) on the font every odd row:

One can see that the italic text has also became bold.

I assume the default font is Lucida Grande . I can reproduce the same behaviour in the FontsDemo.h of DemoRunner when selecting it.

This does not happen with JUCE 7.

Here is a comparison in FontsDemo (JUCE 8 on left, JUCE 7 on right), it seems there is an additional issue regarding the left alignment of text when italic is on:

fixed by Fonts: MacOS: Return styles in the order reported by the system · juce-framework/JUCE@83dc660 · GitHub , it seems.

1 Like

Sorry, I did post too soon, the first issue (wrong font weight) is fixed, but the second one is still there (select any font in FontsDemo, lucida grande for example, select ‘italic’ and see how each new line starts a few pixels before the previous one).

Thanks for reporting. I thought I remembered fixing an issue like this a while ago, but it looks like it got broken in this commit:

I’ll put a fix together.

I’ve put together a fix, which I expect to be published in the next week or so.

The fix for the “drifting” italic text is now available:

1 Like