SVG files and scripts to create icon fonts used by Furkot road trip planner
Install the tools using npm
npm install
Use make
to generate the icons
To generate fonts and style files in build
directory
make clean build
To view generated icons in the browser
make demo
It is used to generate:
- furkot font - used in buttons and markers on the furkot map
- furkot sprites - used in furkot map
In order to add new icons drop SVG anywhere in the svg/furkot
directory:
- SVG file name needs to be unique
- SVG viewBox should be square
- for best results SVG should be rescaled to 512x512
To verify SVGs run:
make verify
To optimize non-conforming SVGs:
make optimize
It'll merge path, apply transforms and change the viewport aspect ratio to square (it will center the path preserving aspect ration). If resulting file needs to be further tweaked try inkscape and svgo.
To reduce size of SVGs:
make pack
It'll remove unused elements and reformat path to reduce file size.
All files in svg
directory are published under the licenses provided by their owners. Check svg
folder for iconset license files.
Everything outside of the svg
directory is published under MIT license.