Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

punchcutter

1.0.14 • Public • Published

Punchcutter CircleCI

Build web fonts, glyphs and sprites.

Installation

Ubuntu 14-16

  1. Install system dependencies:

    sudo apt-get install fontforge g++ graphicsmagick pngquant
    
  2. Install ttfautohint:

    bash ./scripts/install-ttfautohint.sh
    

OS X

  1. Install system dependencies:

    brew install fontforge
    brew install gcc48 --enable-cxx
    brew install graphicsmagick
    brew install pngquant
    brew install ttfautohint --with-qt
    

Usage

Web fonts

See examples/web-font.js. Run the example: cd examples && node web-font.js

SVG and PNG glyphs

See examples/glyph.js. Run the example: cd examples && node glyph.js

JS font

See examples/js-font.js. Run the example: cd examples && node js-font.js

PNG sprite

See examples/png-sprite.js. Run the example: cd examples && node png-sprite.js

SVG sprite

See examples/svg-sprite.js. Run the example: cd examples && node svg-sprite.js

Credit

Test font: Ionicons (MIT license)

License

Copyright (c) 2016 Hein Bekker. Licensed under the GNU Affero General Public License, version 3.

Keywords

none

install

npm i punchcutter

Downloadsweekly downloads

227

version

1.0.14

license

AGPL-3.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar