Trying to create a font, getting error: IllegalArgumentException: loadFont() is for .vlw files, try createFont()

I used tools, create fonts option from menu to create font , the system created data folder with the font file name. the code is below. What am I missing?

/
PFont font1;

void setup(){
size(500,500);

font1=loadFont(“ARBERKLEY-48”);
}
void draw(){
background(255);
textFont(font1,24);
fill(0);
textAlign(LEFT);
text(“what you want to say”, 250,250);
}

/
error on console:

IllegalArgumentException: loadFont() is for .vlw files, try createFont()

Try

…(“ARBERKLEY-48.vlw”);

1 Like

Hello,

The reference for loadFont():

https://processing.org/reference/loadFont_.html

One of the best tools in a programmer’s tool chest is knowing the resources available to you and learning to navigate, filter, and use them.

A short list of resources to peruse:

Resources < Click here to expand !

Explore the resources available here:

:)