How do I load a local font on mounted:
I have the font in the assets folder and have tried this amongst other ways.
I'm using this FontFace API as i want the font to load first before using it (https://stackoverflow.com/a/36248266/66975)
mounted () {
const myFont = new FontFace('adobe-arabic', 'url(~@/assets/Fonts/AdobeArabicRegular/AdobeArabicRegular.ttf)');
myFont.load().then((font) => {
document.fonts.add(font);
console.log('Font loaded');
});
},