Hello!

This is my first message, and I wanted to share something I’ve been working on. I hope to one day download all the fonts that catch my eye, as it’s enjoyable to explore new designs.

I recently came across some interesting fonts on MyFonts, but I’m not quite sure how to download them. I’ve searched for scripts, tutorial videos, and resources to guide me through the process of downloading fonts from MyFonts, but unfortunately, I haven’t found much help.

Here’s some code I got recently:

const base64Data = 'RESPONSE_HERE';
const base64Content = base64Data.split(',')[1];
const binaryData = atob(base64Content);
const uint8Array = new Uint8Array(binaryData.length);
 
for (let i = 0; i < binaryData.length; i++) {
    uint8Array[i] = binaryData.charCodeAt(i);
}
 
const blob = new Blob([uint8Array], { type: 'font/woff2' });
 
const downloadLink = document.createElement('a');
downloadLink.href = URL.createObjectURL(blob);
downloadLink.download = 'YourFontName.woff2';
downloadLink.click();

In comparison, other font sites such as Paratype, Parachute Fonts, and Font Bros seem to be easier to navigate and download.

For example, I downloaded a WOFF2 font file, made some adjustments in FontLab, fixed a couple of bits, and then exported the font files. However, I’m still not sure how to create or export a variable font, nor how to convert variable fonts into static ones. That’s a skill I’d like to learn.

If anyone has any helpful tips, scripts, or comments on how to download fonts from MyFonts (or probably Linotype), I’d appreciate it.

I apologize for any misunderstanding in my explanation of your help.

Thank you and peace out! :)