Skip to content

Commit 43ba7e7

Browse files
committed
clean up error message
1 parent 7f48053 commit 43ba7e7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

core/src/processing/core/PApplet.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6179,8 +6179,7 @@ public PFont createFont(String name, float size, boolean smooth) {
61796179
public PFont createFont(String name, float size,
61806180
boolean smooth, char[] charset) {
61816181
if (g == null) {
6182-
System.err.println("The sketch is not initialized yet.");
6183-
throw new RuntimeException("Fonts must be created inside setup() or after it has been called.");
6182+
throw new RuntimeException("createFont() can only be used inside setup() or after setup() has been called.");
61846183
}
61856184
return g.createFont(name, size, smooth, charset);
61866185
}

0 commit comments

Comments
 (0)