typekit-font-downloader
v1.0.2
Published
An open-source tool to download Typekit fonts to your local machine.
Downloads
1
Readme
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_modules
by runningnpm install
from the root of the project - Now with
zx
installed you can runzx .\script.mjs --url=https://use.typekit.net/qeq2vnm.css
whereby with the--url
argument you can specify what font-kit to download.- You can also make the script an executable by running
chmod +x ./script.mjs
Then you can run the script with./script.mjs
- You can also make the script an executable by running
- The tool with create a folder
fonts
and a foldercss
. Thecss
folder 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.