Find the Exponential Software extensions you want
UNIX name | Owner | Status |
---|---|---|
SVG-Icon-Font-Generator | 7x | stable |
Version | Compatible with |
---|---|
N/A | N/A |
Creates a SVG font from a set of SVG files and vice versa.
The glyph mapping is based on the file names – that makes updating and extending easy and fast.
You can create the svg-icon-font-generator.phar by yourself using the following commands:
(this requires composer.phar to be installed)
git clone https://github.com/madeyourday/SVG-Icon-Font-Generator.git
cd SVG-Icon-Font-Generator
php composer.phar install
php build.php
Or download the latest release here: https://github.com/madeyourday/SVG-Icon-Font-Generator/releases
php svg-icon-font-generator.phar create-font /path/to/svg/files your-font.svg --rename-files
The files should be named like this:
The list above generates the class names icon-arrow-up, icon-magnifying-glass and icon-key.
For creating new icons you can use this SVG template: https://github.com/downloads/madeyourday/SVG-Icon-Font-Generator/icon-template.svg
An example set of SVG files can be found here: https://github.com/madeyourday/RockSolid-Icon-Font/tree/master/svg
php svg-icon-font-generator.phar create-files your-font.svg /path/to/svg/files
php svg-icon-font-generator.phar create-info your-font.svg your-font-info.html
php svg-icon-font-generator.phar create-css your-font.svg your-icons.css
The icon class names are based on the glyph-names specified in the SVG file.