FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 677 : textFont() causes function declarations to fail when used outside of setup()
Last modified: 2007-11-09 14:15
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
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.