A command-line tool that generates type-safe code from IcoMoon font.
- Support for template files in tools
$ brew install tosaka07/tap/icomoongen
$ mint install tosaka07/IcoMoonGen
$ git clone https://github.com/tosaka07/IcoMoonGen.git
$ make install
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.
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
open project with Xcode
$ make generate
$ open IcomoonGen.xcodeproj
Local build
$ make build-debug
$ ./build/debug/icomoongen ...
Release build
$ make build
MIT