https://github.com/topmonks/fontana
Tool for building custom icon font
https://github.com/topmonks/fontana
font svg svg-icons tool
Last synced: 2 months ago
JSON representation
Tool for building custom icon font
- Host: GitHub
- URL: https://github.com/topmonks/fontana
- Owner: topmonks
- License: mit
- Created: 2017-03-02T12:35:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-03-24T11:38:34.000Z (over 5 years ago)
- Last Synced: 2025-03-06T18:36:24.620Z (over 1 year ago)
- Topics: font, svg, svg-icons, tool
- Language: JavaScript
- Size: 429 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fontana
Tool for building custom icon font.
Generates fonts ttf, woff, woff2 and eot from svg icons.
Specimen is generated as html page - for correct work needs some http server (e.g. https://www.npmjs.com/package/http-server).
There is also integration with EmberJS, see https://github.com/topmonks/ember-cli-fontana.
# Run
```
node index.js
```
```
Options:
-o, --output', 'output path (default "./generated/")
-a, --all [optional]', 'generate font from all icon in icon folder
-i, --input [optional]', 'svg icon source path (default "./icons/")
-f, --font [optional]', 'font config file (default "./font.json")
-s, --specimen [optional]', 'generate specimen
```
Font config file
```
{
"name": "My cool font",
"glyphs": [
{
"unicode": [
"\uF1E6"
],
"name": "some icon1",
"file": "someicon1"
},
{
"unicode": [
"\uf067"
],
"name": "some icon2",
"file": "someicon2"
}
}
```
## Note
Not sure where to place your glyph in unicode see https://en.wikipedia.org/wiki/Private_Use_Areas