我正在考虑使用Droid字体为CJK脚本创建一个红宝石样字体。
但是,我不确定是否可以创建一个脚本来将多个SVG文件/符号转换/打包为一个字体文件?
“新”字形创作
有关信息,我希望创建新的符号-for CJK如下所示:
数据将来自Unihan数据库。
目标
我想要一些类似于下面的图片,但把发音放在另一个地方,并有不同的方向。

发布于 2013-09-19 15:48:55
FontForge有一个Python接口。http://fontforge.org/python.html
字形对象有像export和importOutlines这样的方法。我的代码还没有经过测试,但是读取FontForge文档导出应该是这样的:
import fontforge
f = fontforge.open("SomeChineeseFont.ext")
# Not sure if this is the right way to select all glyphs. But you'll get there.
for i in f.selection.select.all():
f[i].export("%s.svg" %i)现在,经过几周的编辑,SVG(也是自动化的)。是时候进口:
import fontforge
f = fontforge.open("SomeChineeseFont.ext") # Use the orginal font as base
for i in f.selection.select.all():
# Delete the original glyph or make sure your SVG
# only contains the contours you want to add.
f.clear()
f[i].importOutlines("%s.svg" %i)
f.save("SomeRubyLikeChineeseFont.ext")这就是你要找的地方吗?
https://stackoverflow.com/questions/18065627
复制相似问题