Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Generates images of font name from Google Fonts
CoffeeScript JavaScript Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
build
.gitignore
.npmignore
Makefile
README.md
canvas.coffee
package.json
source.json

README.md

font-image-generator

This is a font image generator using NodeJS and node-canvas. It's actually just a simple extension of the text example in node-canvas.

Installation

Unless previously installed you'll need Cairo. For system-specific installation view the node-canvas Wiki or use homebrew:

$ brew install cairo
$ brew link cairo
$ brew link pixman  

Now install the node packages:

$ make install

Running it

$ make

Source

Update the source.json file with the text data you want to output as images

Output

The images of the text are saved in the build directory with the following format:

weight_size_font_text.png

Adding fonts

OSX

Add .ttf fonts to the Font Book application

Other platforms

TBD

License

MIT

Something went wrong with that request. Please try again.