...
function
preload
()
{
myFont
=
loadFont
(
'assets/Inconsolata_Expanded-Bold.ttf'
);
}
function
setup
()
{
...
canvas
=
createCanvas
(
width
,
height
,
WEBGL
);
canvas
.
parent
(
canvasID
);
...
textFont
(
myFont
);
...
}
function
draw
()
{
...
}