Character substitution on macOS Sonoma breaks drawText rendering

Use the ‘Inter’ font. Inter - Google Fonts
Draw a string that contains the characters ->
It gets replaced with a ligature, but then the next character gets dropped.
Drawing was fine on Ventura.

	auto text = "triangle -> saw";
	auto textArea = getLocalBounds().withSizeKeepingCentre(200, 20);
	g.drawText (text, textArea, juce::Justification::centred, false);

image

JUCE is setting kCTLigatureAttributeName=0, so not sure why the substitution is happening.

Code: https://github.com/FigBug/juce_bugs/blob/master/ArrowText/Source/MainComponent.cpp#L27

Already reported awhile ago:

Not just the next character, but multiple characters in a longer string.