[BR] wrong font rendering in `TextEditor`

Hi,
On latest develop & macOS, font rendering seems wrong when using TextEditor and custom, Look-and-feel-set font:

  • new PIP from Projucer; open in Xcode
  • in MainWindow::MainWindow() add getLookAndFeel().setDefaultSansSerifTypefaceName("Arial");
  • in MyComponent, add a TextEditor and set some multiline text in it.
  • compare font rendering to simply Graphics::drawMultiLineText:

There are two problems in the TextEditor:

  1. kerning is wrong
  2. there is a spurious character (À) at the end of the line, that disappear when I select this part of the text.

These problems disappear if I call:
textEditor_.setFont(FontOptions("Arial", 14, 0));
before setting the text.

Cheers!

1 Like

I should have mentioned: this is new in 8.0.x; it was not the case in 7.x.x.

See also:

2 Likes