I have two .ttf font files, one of which contains the glyphs that I need to merge to the other font file. Using the GUI, there will be a dialog box saying
Do you want to retain kerning information from the selected font when one of the glyphs being kerned will come from the base font?
I'll need to choose No for this. Upon generating the merged font, there will be a warning saying that the font uses unconventional em size. The font should be generated with errors such as Missing points at extrema
, which is okay.
Now, this is all done via GUI and I'd have to merge a lot of font files so I chose to do the script.
#!/usr/local/bin/fontforge
i = 2
while(i < $argc)
Open($1)
MergeFonts($argv[i])
MergeFeature($1)
Generate($argv[i])
i = i + 1
endloop
With this, I'm getting error MergeFeature: Failed to find kern info in file
thus failing the generation of font. Is there anything that I am missing?