1.2.0 • Published 5 years ago

googlefonts-sprite-generator v1.2.0

Weekly downloads
21
License
ISC
Repository
github
Last release
5 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

5 years ago

1.1.1

6 years ago

1.0.4

7 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago