You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
madan-fonts/SOURCES/madan.py

19 lines
418 B

#!/usr/bin/python3
# usage:
# python3 madan.py <madan.ttf> <madan.svg>
import fontforge as ff
import sys
src_font_file = sys.argv[1]
src_glyph_svg_name = sys.argv[2]
output_font_file_name = "madan.sfd"
glyph_name = 'uni0970'
glyph_unicode = 0x0970
font = ff.open(src_font_file)
glyph = font.createChar(glyph_unicode, glyph_name)
glyph.importOutlines(src_glyph_svg_name)
font.save(output_font_file_name)