loadFont() problem

var myFont;

function preLoad() { myFont = loadFont('assets/DroidSansMono.ttf'); }

function setup() { textFont(myFont); }

why does this give me the following error: "25722: Uncaught Error: null font passed to textFont"?

Answers

Sign In or Register to comment.