Text on a canvas using a webfont
const fontFamily = "Webfont";
const webfont = new FontFace(fontFamily, 'url("./gameboy.woff2")');
webfont.load().then((font) => {
document.fonts.add(font);
// text block with default settings
let txt1 = new Text(new Point(50, 40), "Hello World!", { fontFamily });
txt1.draw(context);
});