Skip to content

apalfrey/typekit-font-downloader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 running npm install from the root of the project
  • Now with zx installed you can run npm run download -- --url=https://use.typekit.net/qeq2vnm.css --dist=source-code-pro whereby with the --url argument you can specify what font-kit to download, and with the --dist argument you can specify what directory to download the font-kit to.
    • You can also make the script an executable by running chmod +x ./script.mjs Then you can run the script with ./script.mjs
  • The tool with create a folder fonts and a folder css. The css 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.

About

A simple to use Typekit font downloader so you can include Typekit fonts in your local environment without using a CDN

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%