text font() code.org code example
Example: option in textfont() code.org
1// Various fonts
textSize(18);
text("Hello World", 100, 75);
textFont("Arial");
// Same as default font
text("Hello World", 100, 125);
textFont("Georgia");
text("Hello World", 100, 175);
textFont("Times New Roman");
text("Hello World", 100, 225);
textFont("Courier New");
text("Hello World", 100, 275);