Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.35 KB

README.md

File metadata and controls

21 lines (16 loc) · 1.35 KB

font_generator

Script written in Python to convert images/svgs to font.

How to use

Install Fontforge

run in MacOS

/Applications/FontForge.app/Contents/MacOS/FontForge -quiet -script font_generator.py --output myfont.ttf --files *.svg --code 61440

run in Linux

fontforge -quiet -script font_generator.py --output myfont.ttf --files *.svg --code 61440

Options

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)