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
- Host: GitHub
- URL: https://github.com/klaaz0r/subsetty
- Owner: klaaz0r
- Created: 2017-02-22T09:13:18.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-12T14:16:17.000Z (about 9 years ago)
- Last Synced: 2026-03-30T09:26:22.097Z (4 months ago)
- Topics: fonts, fonttools, subset
- Language: Python
- Homepage:
- Size: 652 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 */)
```