typekit-font-downloader

1.0.2 • Public • Published

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 zx .\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
  • 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.

Readme

Keywords

none

Package Sidebar

Install

npm i typekit-font-downloader

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

22.5 kB

Total Files

4

Last publish

Collaborators

  • xigangxi