typekit-font-downloader v1.0.2
Typekit font downloader
An open-source tool to download Typekit fonts to your local machine.
Introduction
With this tool you can download any Typekit font to your local machine. Support for woff woff2 and opentype format.
Give a URL of the typekit fonts and let the script run. It will download all the files to a folder called fonts. Then based on the font definition it will create a new css file with all the url's to the local fonts.
With this tool you can increase your performance of your website since the site does not need to retrieve the fonts anymore from a local source, instead it has all the files needed locally avaliable.
Get started
Under the hood this project uses zx to execute the scripts. You can install it globally running npm i -g zx
Requirement: Node version >= 16.0.0
- Install
node_modulesby runningnpm installfrom the root of the project - Now with
zxinstalled you can runzx .\script.mjs --url=https://use.typekit.net/qeq2vnm.csswhereby with the--urlargument you can specify what font-kit to download.- You can also make the script an executable by running
chmod +x ./script.mjsThen you can run the script with./script.mjs
- You can also make the script an executable by running
- The tool with create a folder
fontsand a foldercss. Thecssfolder contains a file with the font definition which you can include in your own project.
Acknowlegment
This tool might be against the Terms of Service/EULA of Adobe.
3 years ago