mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2026-01-09 18:11:42 +01:00
JBR-5946 Allow to disable painting of composed text in Swing text components using TextLayout.draw
This commit is contained in:
@@ -1010,7 +1010,11 @@ public class SwingUtilities2 {
|
||||
} else {
|
||||
layout = new TextLayout(iterator, frc);
|
||||
}
|
||||
layout.draw(g2d, x, y);
|
||||
if (Boolean.TRUE.equals(Toolkit.getDefaultToolkit().getDesktopProperty("jb.swing.avoid.text.layout"))) {
|
||||
g2d.drawString(iterator, x, y);
|
||||
} else {
|
||||
layout.draw(g2d, x, y);
|
||||
}
|
||||
retVal = layout.getAdvance();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user