Skip to content

A command-line tool that generates type-safe code from IcoMoon font.

License

Notifications You must be signed in to change notification settings

tosaka07/IcoMoonGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IcoMoonGen

A command-line tool that generates type-safe code from IcoMoon font.

ToDo

  • Support for template files in tools

Installation

Homebrew

$ brew install tosaka07/tap/icomoongen

Mint

$ mint install tosaka07/IcoMoonGen

Manual

$ git clone https://github.com/tosaka07/IcoMoonGen.git
$ make install

Usage

Run icomoongen help to see usage instructions.

USAGE: icomoongen generate <input> [--spec <spec>] [--verbose]

ARGUMENTS:
  <input>                 Path to a zip file containing the files generated by icomoon.

OPTIONS:
  -s, --spec <spec>       Path to the configuration file containing the input and output. (default: icomoongen.yml)
  -v, --verbose
  --version               Show the version.
  -h, --help              Show help information.

icomoongen.yml

You can specify a spec with yml. Code supports default templates or a template file written by you.

code:
  - templateName: swift
    output: output.swift
  - templatePath: ./some-template.stencil
    output: output.kotlin
font:
  - type: ttf
    output: some.ttf

Development

open project with Xcode

$ make generate
$ open IcomoonGen.xcodeproj

Local build

$ make build-debug
$ ./build/debug/icomoongen ...

Release build

$ make build

License

MIT

About

A command-line tool that generates type-safe code from IcoMoon font.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published