textFont

v0.0.2
textFont(font);

Set the font family

Arguments

fontThe font value returned when using loadFont

function setup()
  createWindow(600, 600);

  myfont = loadFont('path/to/myfont.ttf');
end

function draw()
  background(51);

  textFont(myfont);
  text('Hello world!', 100, 200);
end
See textFont in setting.h