I am using this code:
codeArea.clearStyle(0, codeArea.getLength() - 1);
Before / After Clear and style

If the area is already clean, the problem does not happen (it is inside a VirtualizedScrollPane)
Obs.: After some tests, I noticed that this happens when the font type is italic
I am using this code:
codeArea.clearStyle(0, codeArea.getLength() - 1);Before / After Clear and style

If the area is already clean, the problem does not happen (it is inside a VirtualizedScrollPane)
Obs.: After some tests, I noticed that this happens when the font type is italic