@weotch/fontagon-cli
v1.1.0
Published
![Fontagon logo](https://raw.githubusercontent.com/kdydesign/cdn/master/fontagon/logo/svg/fontagon-logo-inline.svg)
Downloads
38
Maintainers
Readme
Fontagon-CLI (Global)
Easily create web-icon-font svg using fontagon-cli
Intro
This module easily converts svg to font files and css. It is a new and updated module that refers to webfonts-generator and provides a variety of additional functions such as css, less, sass, and stylus conversion.
Features:
- Supported font formats:
WOFF2
,WOFF
,EOT
,TTF
andSVG
. - Supports the product built with
css
,sass
,less
, andstylus
. - Custom templates are available.
- Support for
ligature
- Support for
CLI
Infos
Install
Install with npm:
npm install -g fontagon-cli
You can check you have the right version with this command:
fontagon --version
Usage
Create a file to build svg.
fontagon generate <svg-path> [options]
The fontagon
create command has a number of options and you can explore them all by running:
fontagon generate --help
Usage: fontagon generate [options] <svg-path>
Build svg to create style sheets and fonts (multiple path inputs as ',')
Options:
-s, --style <style> Type of css or css pre-processor to export
-t, --styleTemplate <path> Path to a hbs template, requires --style
-f, --fontName <font-name> Specify a font name and the default name for the font file
-d, --dist <dist> Directory for generated font files
-b, --baseClass <base-class> Stylesheet Default Class Name
-p, --classPrefix <class-prefix> Prefix of icon class name
-h, --help display help for command
License
MIT License Copyright (c) Dev.DY