loadFont

v0.0.6
loadFont(path);

Load a font

Arguments

pathThe font path on the local system

Returns

fontThe image reference

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

function draw()
  background(51);

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