diff --git a/src/type/p5.Font.js b/src/type/p5.Font.js index 33bd07240a..0faa066038 100644 --- a/src/type/p5.Font.js +++ b/src/type/p5.Font.js @@ -950,6 +950,9 @@ async function create(pInst, name, path, descriptors, rawFont) { // add it to the document document.fonts.add(face); + // ensure the font is ready to be rendered + await document.fonts.ready; + // return a new p5.Font return new Font(pInst, face, name, path, rawFont); }