Skip to content

Commit 8c8a26f

Browse files
committed
add fix for anti-aliasing of text
1 parent 027d159 commit 8c8a26f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

app/src/processing/app/tools/CreateFont.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,11 @@ public void paintComponent(Graphics g) {
164164
smooth ?
165165
RenderingHints.VALUE_TEXT_ANTIALIAS_ON :
166166
RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);
167-
// add this one as well
168-
// g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
169-
// smooth ?
170-
// RenderingHints.VALUE_ANTIALIAS_ON :
171-
// RenderingHints.VALUE_ANTIALIAS_OFF);
167+
// add this one as well (after 1.0.9)
168+
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
169+
smooth ?
170+
RenderingHints.VALUE_ANTIALIAS_ON :
171+
RenderingHints.VALUE_ANTIALIAS_OFF);
172172
super.paintComponent(g2);
173173
}
174174
};

0 commit comments

Comments
 (0)