mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
clean up error message
This commit is contained in:
@@ -6179,8 +6179,7 @@ public class PApplet implements PConstants {
|
||||
public PFont createFont(String name, float size,
|
||||
boolean smooth, char[] charset) {
|
||||
if (g == null) {
|
||||
System.err.println("The sketch is not initialized yet.");
|
||||
throw new RuntimeException("Fonts must be created inside setup() or after it has been called.");
|
||||
throw new RuntimeException("createFont() can only be used inside setup() or after setup() has been called.");
|
||||
}
|
||||
return g.createFont(name, size, smooth, charset);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user