mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2026-01-08 01:21:42 +01:00
JBR-5946 Allow to disable painting of composed text in Swing text components using TextLayout.draw
(cherry picked from commit 3ac357417b)
This commit is contained in:
@@ -1003,7 +1003,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