Skip to content

Commit 53609ac

Browse files
committed
increase a few fonts a bit, antialias on the status
1 parent f78b37c commit 53609ac

4 files changed

Lines changed: 14 additions & 6 deletions

File tree

app/src/processing/app/EditorLineStatus.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
package processing.app;
2424

2525
import java.awt.*;
26+
2627
import javax.swing.*;
2728

2829

@@ -87,14 +88,19 @@ public void set(int newStart, int newStop) {
8788

8889

8990
public void paintComponent(Graphics g) {
91+
Graphics2D g2 = (Graphics2D) g;
92+
g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
93+
RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
94+
9095
g.setColor(background);
9196
Dimension size = getSize();
9297
g.fillRect(0, 0, size.width, size.height);
9398

9499
g.setFont(font);
95100
g.setColor(foreground);
96101
int baseline = (high + g.getFontMetrics().getAscent()) / 2;
97-
g.drawString(text, 6, baseline);
102+
// With 7u40 (or Source Code Sans?) things seem to be edged up a bit
103+
g.drawString(text, 6, baseline - 1);
98104
}
99105

100106

app/src/processing/app/syntax/TextAreaPainter.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,10 @@ public void paint(Graphics gfx) {
462462
antialias ?
463463
RenderingHints.VALUE_TEXT_ANTIALIAS_ON :
464464
RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);
465-
466-
g2.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS,
467-
RenderingHints.VALUE_FRACTIONALMETRICS_ON);
465+
466+
// no effect, one way or the other
467+
// g2.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS,
468+
// RenderingHints.VALUE_FRACTIONALMETRICS_ON);
468469

469470
tabSize = fm.charWidth(' ') * ((Integer)textArea.getDocument().getProperty(PlainDocument.tabSizeAttribute)).intValue();
470471

build/shared/lib/theme.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ buttons.status.font = processing.sans,plain,13
3838
buttons.status.color = #ffffff
3939

4040
# MODE SELECTOR
41-
mode.button.font = processing.sans,plain,12
41+
mode.button.font = processing.sans,plain,13
4242
# outline color of the mode button
4343
mode.button.color = #ffffff
4444

4545
# LINE STATUS
4646
# The editor line number status bar at the bottom of the screen
4747
linestatus.color = #ffffff
4848
linestatus.bgcolor = #29333d
49-
linestatus.font = processing.sans,plain,12
49+
linestatus.font = processing.sans,plain,13
5050
linestatus.height = 20
5151

5252

todo.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ X remove Java FX during Windows builds
149149
X remove javafx from the embed
150150
X more about optional files:
151151
X http://www.oracle.com/technetwork/java/javase/jdk-7-readme-429198.html
152+
_ exclude 'fonts' folder from build (since it's going into the JRE)
152153
_ update github instructions
153154
_ only JRE needed at this point
154155
_ switched over to Java 7

0 commit comments

Comments
 (0)