Commit f50ba4c3 authored by antoine's avatar antoine

plein de trucs

parent e103fadd
......@@ -7,23 +7,17 @@ import sys
NameFile = sys.argv[1]
compositeChar = [192, 193, 194, 195, 196, 199, 200, 201, 202, 203, 204, 205, 206, 207, 210, 211, 212, 213, 214, 217, 218, 219, 220, 224, 225, 226, 227, 231, 232, 233, 234, 235, 236, 237, 238, 239, 242, 243, 244, 249, 250, 251, 252]
font = fontforge.open('temp/font.sfd')
svg_final = glob.glob('svg/clean/*svg')
for letter_svg in svg_final:
letter = letter_svg.split("/")[-1].replace(".svg", "")
print(letter)
glyph = font.createChar(int(letter))
glyph.width = 611
# glyph.width = 407
glyph.importOutlines(letter_svg)
font.fontname = 'Metahoguet-'+NameFile
font.familyname = 'Metahoguet'
# font.generate('FINAL/Metahoguet-'+NameFile+'.sfd')
# font.generate('FINAL/Metahoguet-'+NameFile+'.ttf')
font.generate('FINAL/Metahoguet-'+NameFile+'.otf')
font.save()
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment