textFont

v0.1.7
textFont(font);

Set a font family.

Arguments

fontThe 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

See textFont in typography.h