File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,9 @@ public EditorConsole(Editor editor) {
88
88
Color bgColor = Theme .getColor ("console.color" );
89
89
Color fgColorOut = Theme .getColor ("console.output.color" );
90
90
Color fgColorErr = Theme .getColor ("console.error.color" );
91
- Font font = Theme .getFont ("console.font" );
91
+ Font consoleFont = Theme .getFont ("console.font" );
92
+ Font editorFont = Preferences .getFont ("editor.font" );
93
+ Font font = new Font (consoleFont .getName (), consoleFont .getStyle (), editorFont .getSize ());
92
94
93
95
stdStyle = new SimpleAttributeSet ();
94
96
StyleConstants .setForeground (stdStyle , fgColorOut );
Original file line number Diff line number Diff line change @@ -62,7 +62,9 @@ public void actionPerformed(ActionEvent e) {
62
62
63
63
getContentPane ().setLayout (new BorderLayout ());
64
64
65
- Font font = Theme .getFont ("console.font" );
65
+ Font consoleFont = Theme .getFont ("console.font" );
66
+ Font editorFont = Preferences .getFont ("editor.font" );
67
+ Font font = new Font (consoleFont .getName (), consoleFont .getStyle (), editorFont .getSize ());
66
68
67
69
textArea = new JTextArea (16 , 40 );
68
70
textArea .setEditable (false );
@@ -225,4 +227,4 @@ public void run() {
225
227
}
226
228
}});
227
229
}
228
- }
230
+ }
You can’t perform that action at this time.
0 commit comments