Giter Site home page Giter Site logo

netbek / punchcutter Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 2.9 MB

Build web fonts, glyphs and sprites

License: GNU Affero General Public License v3.0

Makefile 0.42% JavaScript 95.06% Nunjucks 4.52%
node-js node web-font font icon eot ttf woff woff2 png svg sprite

punchcutter's Introduction

Punchcutter CircleCI

Build web fonts, glyphs and sprites.

Installation

Ubuntu 18

  1. Install system dependencies:

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

    curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
    source ~/.bashrc
    nvm install v18.16.0
    nvm alias default v18.16.0

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
  2. Install Node 18.x:

    curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
    source ~/.bashrc
    nvm install v18.16.0
    nvm alias default v18.16.0

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.