textFont(font);
Set a font family.
Arguments
font
The font value returned when using loadFont
function setup()
createWindow(200, 200);
end
function draw()
background('purple');
textFont('Monospace');
text('Hello from lu5!', 5, 110);
end
Output