Skip to content

rhedgeco/tksync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typekit Sync

This is an unofficial tool for downloading fonts from Adobe Fonts (Typekit). You must have a valid adobe account to use this tool as it takes advantage of the Web Projects feature.

Usage

Sync all projects

To sync all projects just run:

tksync

Add new Typekit Project

To add a new project to be tracked by tksync, first create a new Web Project in Adobe Fonts.

Then run use the tksync add command:

tksync add [OPTIONS] <ID> <NAME> <PATH>

Arguments:
  <ID>    Id of the typekit project
  <NAME>  Name of typekit project
  <PATH>  Path to download project fonts to

Options:
  -r, --replace  Overwrite existing project id if it exists

How to create a new Web Project in Adobe Fonts

Go to Adobe Fonts and search for a font that you want.

Once you find one, click on the font, and click the '</> Add to Web Project' button.

Add to Web Project

Then click on the dropdown for projects, and either add the font to an existing project or create a new project.

Create new project

Once added, your project id is the also the filename for the corresponding web project css file.

Project ID

The project ID can also be accessed by clicking on 'Manage fonts' in the top right, and then clicking 'Web Projects'.

Manage Fonts

Once a new project ID is created, you may add that project to tksync using the following:

tksync add ozf1hrw LinuxFontLibrary ~/.fonts

The name and download directory are not restricted by the project. Just choose the best location for your fonts to be downloaded to. For global fonts, this is usually /usr/share/fonts

Note: if you sync to directories that require special privilages like /usr/share/fonts, you will have to run the sync commmand with sudo sudo tksync. Be aware both sudo and individual users will have different configuration files, so you will also need to add the project to the sudo configuration with sudo tksync add ....

Installation

Arch Linux

sudo pacman -S --needed base-devel
git clone https://aur.archlinux.org/tksync.git
cd tksync
makepkg -si

Arch Linux using paru

paru -S tksync

Manual Install

Install the rust package manager cargo

Then build the binary

git clone https://github.com/rhedgeco/tksync.git
cd tksync
cargo build --release

Next, copy the binary to a place of your choosing (probably somewhere in your shells PATH):

cp ./target/release/tksync /usr/bin/tksync

About

Unofficial tool for downloading fonts from Adobe Typekit (aka. Adobe Fonts).

Topics

Resources

License

Stars

Watchers

Forks

Languages