fontagon-cli

1.0.5 • 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
  -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 fontagon-cli

Weekly Downloads

8

Version

1.0.5

License

MIT

Unpacked Size

9.88 kB

Total Files

8

Last publish

Collaborators

  • kdydesign