The icon manager is used to build and manage SVG icons as well as a custom font using the fontforge
python module.
Python <= 3.0
PHP <= 7.4
FontForge module
(python3)sudo apt-get install fontforge
- Submodule
First, add the repository as asubmodule
to your projects.mkdir icons && cd icons git submodule add https://github.com/smr76/icon-manager
- Config (optional)
Set a custom configuration in manager's parent directory and name itmanager.conf
(if it does not exist, it will be created on launch based onsample.conf
). - Launch
Finally, executelaunch.sh
to launch the manager. - Add
Choose a SVG file and give it a suitable name. - Generate
Generate font by clickingGenerate
.
To optimize .svg
files, use svgo.
The code below will optimize all .svg
files in the ../svg
directory, with the option -p
indicating 2 decimal precision.
svgo -p 2 -f ../svg