1.2.0 • Published 6 years ago

googlefonts-sprite-generator v1.2.0

Weekly downloads
21
License
ISC
Repository
github
Last release
6 years ago

GoogleFontSpriteImageGenerator

Example image

This project/module helps generate sprite image for google font drawdown.

Google font api key

You will need API key https://developers.google.com/fonts/docs/developer_api#Auth

Example usage

Install with: npm install googlefonts-sprite-generator

var generator = require("googlefonts-sprite-generator");

generator.getImage({
	callback: function(base64Data) {
		console.log(base64Data);
		require("fs").writeFile("out.png", base64Data, 'base64', function(err) {
			console.log(err);
		});
	},
	port: 1224,
	options: {
		lineHeigth: "40px",
		fontSize: "25px",
		width: "400px"
	},
	googleAPIKey:"" //You need to replace this with your api key
});
1.2.0

6 years ago

1.1.1

7 years ago

1.0.4

8 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago