Bug 870 : Error: Use textFont() before textSize()
Last modified: 2008-08-11 12:07




Status:
RESOLVED
Resolution:
DUPLICATE of bug 726
Priority:
P2
Severity:
normal

 

Reporter:
clio
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-08-11 10:49
Using unaltered code from website: ch04-milkteacoffee --> figure_06_finalish.

Works sometimes, others (sometimes every other time...) gets error below.

Thanks,
Clio


1. 0144 BETA
2. Windows OS, Dell Computer
3. The code is exactly as it is online.

Here's the "red spew"

java.lang.RuntimeException: Use textFont() before textSize()
at processing.core.PGraphics.textSize(PGraphics.java:2417)
at processing.core.PGraphicsJava2D.textSize(PGraphicsJava2D.java:931)
at processing.core.PApplet.textSize(PApplet.java:7561)
at Temporary_2864_9897.drawTitle(Temporary_2864_9897.java:293)
at Temporary_2864_9897.draw(Temporary_2864_9897.java:282)
at processing.core.PApplet.handleDisplay(PApplet.java:1444)
at processing.core.PGraphics.requestDisplay(PGraphics.java:695)
at processing.core.PApplet.run(PApplet.java:1542)
at java.lang.Thread.run(Thread.java:595)
Additional Comment #1 From fry 2008-08-11 12:07


*** This bug has been marked as a duplicate of 726 ***