trying to disable text anti-aliasing on macosx

This commit is contained in:
benfry
2003-07-30 00:24:59 +00:00
parent b2444dae51
commit 1c5538c3c5

View File

@@ -59,7 +59,21 @@ public class PdeEditorConsole extends JScrollPane {
public PdeEditorConsole(PdeEditor editor) {
this.editor = editor;
consoleTextPane = new JTextPane();
consoleTextPane = new JTextPane() {
public void paint(Graphics g) {
#ifdef JDK13
if (PdeBase.platform == PdeBase.MACOSX) {
if (PdeBase.getBoolean("editor.console.antialias",
false) == false) {
Graphics2D g2 = (Graphics2D) g;
g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);
}
}
#endif
super.paint(g);
}
};
consoleTextPane.setEditable(false);
consoleDoc = consoleTextPane.getStyledDocument();