I’m using a ListBox to show a rather long list of text and other values in a OpenGL driven window.
The text cells are custom Labels looking like this:
EventListTextFieldCell::EventListTextFieldCell(TableListBox& listBox) :
Label(""), _tableView(listBox)
{
this->setColour(Label::backgroundColourId, Colours::transparentBlack);
this->setColour(Label::outlineColourId, Colours::transparentBlack);
this->setMinimumHorizontalScale(1.0f);
}
I had customers complaining in the past that the rendered text would be missing letters but that everything would be fine when the text is double-clicked to edit it.
I could reproduce that but couldn’t find out why it behaved that way. I was in a hurry and just tried a different font and it looked like it worked then.
Just today I got another customer complaining about the same behavior. He sent me this screenshot:
See the gaps?
The line near the bottom should read:
“Ohrenquallen gibt es seit fünfhundert Millionen Jahren, ohne, dass sie sich jemals besonders verändert haben”
When the text is double-clicked, it displays fine.
Can anyone tell me why it would behave that way?
Can this be related to the this->setMinimumHorizontalScale(1.0f)
call?
I don’t want the text to be squeezed as I don’t like the look of it and it also slows down rendering massively if I remember correctly especially with lots of lines.
Any help would be appreciated!