ArmandoAssuncao / font_generator

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

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

License:MIT License


Languages

Language:Python 100.0%