We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Bug, or syntax problem
Page Index Toggle Pages: 1
Bug, or syntax problem? (Read 361 times)
Bug, or syntax problem?
Mar 4th, 2006, 5:07am
 
I created a font, I made sure it was in the data directory, and it worked the first time I ran it. But now, it says it can't find the font, and please ensure that it is the data directory.

Am I doing something wrong, or is this a bug I should report


void setup()
{
 size(400,400);
 stroke(255);
 framerate(15);
 background(102);
}

PFont wordfont = loadFont("ArialMT-32.vlw");

void draw()
{
 textFont(wordfont, 32);
 fill(255);
 text("Fooble", 30, 250);
 textFont(wordfont, 16);
 fill(255);
 text("Blargle", 30, 250);
}
Re: Bug, or syntax problem?
Reply #1 - Mar 4th, 2006, 9:47am
 
Try it like this:

Code:


PFont wordfont;

void setup()
{
size(400,400);
stroke(255);
framerate(15);
background(102);

wordfont = loadFont("ArialMT-32.vlw");

}


Page Index Toggle Pages: 1