import FontFaceObserver from 'fontfaceobserver';
/** A promise that resolves when the main fonts on the exam have been loaded. */
export const ready = Promise.all([
    new FontFaceObserver('Noto Sans', { weight: 300 }).load(), // Light
    new FontFaceObserver('Noto Sans', { weight: 400 }).load(), // Regular
    new FontFaceObserver('Noto Sans', { weight: 600 }).load(), // Semibold
    new FontFaceObserver('Noto Sans', { weight: 700 }).load(), // Bold
    new FontFaceObserver('Noto Sans', { style: 'italic' }).load()
])
    // eslint-disable-next-line promise/always-return
    .then(() => {
    loaded = true;
})
    .catch(e => console.error('Loading fonts failed', e));
/** A boolean flag that tells if the main fonts have been loaded.  */
export let loaded = false;
//# sourceMappingURL=fonts.js.map