An open API service indexing awesome lists of open source software.

https://github.com/klaaz0r/subsetty

📝 subsetting fonts for node
https://github.com/klaaz0r/subsetty

fonts fonttools subset

Last synced: 10 days ago
JSON representation

📝 subsetting fonts for node

Awesome Lists containing this project

README

          

# 📝 subsetty

Subsetting fonts for node using fonttools

## install

`npm install subsetty`

subset takes two arguments, a font and the subset text. The subset text get's filtered with Ramda `join('', uniq(subset))` will get rid of all the duplicated characters.

## howto
requires Python 2.7, 3.4 or later!

```javascript
import { subset, toWoff } from './index'

subset(buffer, 'hello world')
.then(font => /* do something with the font buffer */)

toWoff(buffer)
.then(font => /* do something with the font buffer */)

```