Skip to content

Commit 6d7e11f

Browse files
committed
font issues sorted, lots of cleanup, fix retina crustiness
1 parent 3819a6e commit 6d7e11f

5 files changed

Lines changed: 135 additions & 109 deletions

File tree

app/src/processing/app/Editor.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,9 @@ protected int getDividerLocation() {
472472
* with things in the Preferences window.
473473
*/
474474
protected void applyPreferences() {
475+
// All of this code was specific to using an external editor.
476+
// Keeping this around so we can update fonts.
477+
/*
475478
// // apply the setting for 'use external editor'
476479
// boolean external = Preferences.getBoolean("editor.external");
477480
// textarea.setEditable(!external);
@@ -494,7 +497,7 @@ protected void applyPreferences() {
494497
// }
495498
496499
// apply changes to the font size for the editor
497-
painter.setFont(Preferences.getFont("editor.font"));
500+
// painter.setFont(Preferences.getFont("editor.font"));
498501
499502
// in case tab expansion stuff has changed
500503
// removing this, just checking prefs directly instead
@@ -505,6 +508,7 @@ protected void applyPreferences() {
505508
//sketchbook.rebuildMenus();
506509
// For 0126, moved into Base, which will notify all editors.
507510
//base.rebuildMenusAsync();
511+
*/
508512
}
509513

510514

@@ -2007,6 +2011,9 @@ protected boolean checkModified() {
20072011
// As of Processing 1.0.10, this always happens immediately.
20082012
// http://dev.processing.org/bugs/show_bug.cgi?id=1456
20092013

2014+
// With Java 7u40 on OS X, need to bring the window forward.
2015+
toFront();
2016+
20102017
String prompt = "Save changes to " + sketch.getName() + "? ";
20112018

20122019
if (!Base.isMacOS()) {

app/src/processing/app/syntax/PdeTextAreaDefaults.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public PdeTextAreaDefaults(Mode mode) {
201201
int fontSize = Preferences.getInteger("editor.font.size");
202202
plainFont = new Font(fontFamily, Font.PLAIN, fontSize);
203203
boldFont = new Font(fontFamily, Font.BOLD, fontSize);
204-
//System.out.println("font is " + plainFont.getFamily() + " / " + plainFont.getName() + " / " + plainFont.getFontName() + " / " + plainFont.getPSName());
204+
System.out.println("font is " + plainFont.getFamily() + " / " + plainFont.getName() + " / " + plainFont.getFontName() + " / " + plainFont.getPSName());
205205
// antialias = Preferences.getBoolean("editor.antialias");
206206

207207
styles = new SyntaxStyle[Token.ID_COUNT];

0 commit comments

Comments
 (0)