xxxxxxxxxx
//this won't show fancy fonts online due to allowed file types, try it on your computer
size (700, 400);
background (255);
PFont font; // this is a variable, can be called anything you like
// use "Tools" > "Create Font", select font, and it will be added to your sketch's data folder
// you can access this by clicking on "Sketch" > "Show Sketch Folder" using processing
// copy paste the name of the font from the data folder.
// Fonts used in processing need to be in .vlW format, so you should use the create font tool
font = loadFont ("BlackoakStd-48.vlw");
fill (255, 0, 0); // color of the font
textFont (font, 20); // draws the font + gives it a size
text ("fonts are cool", 10, 30); // what should it draw
PFont font2;
font2 = loadFont ("AvenirNextCondensed-Italic-48.vlw");
fill (0, 255, 0);
textFont (font2, 50);
text ("this is a itallic font", 10, 150);