I have something like this that is converting fonts
i=1
while ( i<$argc )
Open($argv[i])
# edit meta somehow
Generate($argv[i]:r + type)
i = i+1
endloop
that prints this metadata
Created by FontForge 20141024 at Wed Nov 12 16:59:42 2014
By Jimmy Wärting
that i would like to remove or change
You can use built-in function SetFontNames.
It has such signature:
SetFontNames(fontname[,family[,fullname[,weight[,copyright-notice[,fontversion]]]]])
i=1
while ( i<$argc )
Open($argv[i])
#edit meta
SetFontNames('fontName', 'fontFamilyName', 'fullName', 'weight',
'copyright', 'version')
Generate($argv[i]:r + type)
i = i+1
endloop
If some parameters are not necessary, just write empty string:
SetFontNames('', '', '', '', 'copyright', 'version')
For more details, please, see https://fontforge.github.io/scripting-alpha.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With