Bug 677 : textFont() causes function declarations to fail when used outside of setup()
Last modified: 2007-11-09 14:15




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P2
Severity:
normal

 

Reporter:
Tom Blackwell
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2007-11-09 10:44
Found in version 0133 on Windows XP, verified to also exist in 0124.
The following will cause the PDE to display "unexpected token: void"
PFont fontA;

//fontA = loadFont("it doesn't matter if loadFont is present");

textFont(fontA, 32);

void anything()
{
}
Additional Comment #1 From fry 2007-11-09 14:15
you cannot call functions outside of other setup() and draw() or other
methods. that's mixing "basic" and "continuous" mode. read help -> getting
started, and read more examples to get a better understanding of how it works.