0.0.3 • Published 8 years ago

fontello-maker v0.0.3

Weekly downloads
11
License
ISC
Repository
github
Last release
8 years ago

Fontello-maker

A fontello builder, that creates the config.json based on your SVG icons

Example

This is a example using grunt. But if you want to use fontello-maker with another tool, you can require src/maker and pass the same configuration object.

grunt.initConfig({
	fontelloMaker: {
		options: {
			icon_folder: "./resources/images/fonticons/**/*.svg",
			config_file: "./resources/libs/fontello/config.json",
			fonts_folder: "./resources/libs/fontello/font",
			css_folder: "./resources/libs/fontello/css",
			aditional_css: ["./resources/"],
			name: "name",
			prefix: "prefix-",
			suffix: false,
			hinting: true,
			units_per_em: 1000,
			ascent: 850,
			completeLog: false,
			force: true
		}
	}
});

Options

  • icon_folder - The SVG icons that will be at your font "./resources/images/fonticons/**/*.svg"
  • config_file - Where fontello-maker will put the configuration "./resources/libs/fontello/config.json"
  • fonts_folder - Where fontello-maker will put the font files "./resources/libs/fontello/font"
  • css_folder - Where fontello-maker will put the CSS files "./resources/libs/fontello/css"
  • force - Force overwrite the files (css and fonts) true
  • completeLog - Show the Error stack if there's one false

Fontello specific configurations

  • name - The name of your fontello files "name"
  • prefix - Icons name prefix "prefix-"
  • suffix - Icons name suffix false or "-suffix"
  • hinting - Font hinting true
  • units_per_em - Font units configuration 1000
  • ascent - Font configuration 850