Skip to content

klaaz0r/subsetty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

30 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ 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!

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 */)

About

๐Ÿ“ subsetting fonts for node

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published