textFont(font);
Set the font family
Arguments
font
The font value returned when using loadFontfunction setup()
createWindow(600, 600);
myfont = loadFont('path/to/myfont.ttf');
end
function draw()
background(51);
textFont(myfont);
text('Hello world!', 100, 200);
end