async function loadFonts(fontsToLoad, debug = false)
{
    if ((fontsToLoad.size ?? fontsToLoad.length) === 0) {
        throw new TypeError(
            'Expected at least one font'
        );
    }

    return await loadFontsWithAPI([ ...fontsToLoad ], debug);
}
Eagerly load fonts.

Most user agents only fetch and load fonts when they are first needed
("lazy loaded"), which can result in a perceptible delay.

This function will "eager load" the fonts.

@param {(FontFace|FontFaceReference)[]} fontsToLoad - List of fonts to load.
@param {boolean}             [debug]     - If TRUE, log details to the console.

@returns {Promise}