loadFont

v0.0.2
loadFont(path);

Load a font face

Arguments

pathThe font path on the local system

function setup()
  createWindow(600, 600);
  myfont = loadFont('/path/to/myfont.ttf');
end

function draw()
  background(51);

  textFont(myfont);
  text('Hello from lu5!', 30, 50);
end   
See loadFont in loaders.h