@weotch/fontagon-cli

1.1.0 • Public • Published

Fontagon logo

Fontagon-CLI (Global)

npm version npm downloads Circle CI Codecov Dependencies Standard JS License

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 and SVG.
  • Supports the product built with css, sass, less, and stylus.
  • 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

Package Sidebar

Install

npm i @weotch/fontagon-cli

Weekly Downloads

4

Version

1.1.0

License

MIT

Unpacked Size

8.94 kB

Total Files

7

Last publish

Collaborators

  • weotch