Script written in Python to convert images/svgs to font.
Install Fontforge
/Applications/FontForge.app/Contents/MacOS/FontForge -quiet -script font_generator.py --output myfont.ttf --files *.svg --code 61440
fontforge -quiet -script font_generator.py --output myfont.ttf --files *.svg --code 61440
Option | Required | Default | Description |
---|---|---|---|
--output, -o |
* | The output font file. | |
--files, -f |
[] | Images/Vectors to add in font. | |
--code, -c |
61440 | The unicode of the images, if you pass more than one image, the anothers receive next codes. Accepts between 0-65535 | |
--map-name |
The name of the glyphmap file. | ||
--map-format |
json | The type of the glyphmap file. (Accepts: json, ts-enum) |