gpt4 book ai didi

scripting - 是否可以删除/编辑 fontforge 中的元数据

转载 作者:行者123 更新时间:2023-12-02 03:30:49 24 4
gpt4 key购买 nike

我有这样的东西正在转换字体

i=1
while ( i<$argc )
Open($argv[i])
# edit meta somehow
Generate($argv[i]:r + type)
i = i+1
endloop

打印此元数据

Created by FontForge 20141024 at Wed Nov 12 16:59:42 2014
By Jimmy Wärting

我想删除或更改

最佳答案

您可以使用内置函数 SetFontNames

它有这样的签名:

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

如果有些参数不是必须的,就写空字符串:

 SetFontNames('', '', '', '', 'copyright', 'version')

更多详情请见https://fontforge.github.io/scripting-alpha.html

关于scripting - 是否可以删除/编辑 fontforge 中的元数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26891490/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com