フォント (TTF) に変換したい SVG のセットがありますが、自動化する必要があります。これは可能ですか?
fontforge などはすべて人間の介入が必要なようです。
フォント (TTF) に変換したい SVG のセットがありますが、自動化する必要があります。これは可能ですか?
fontforge などはすべて人間の介入が必要なようです。
fontforge で可能です:
import fontforge
# create an empty font in memory
font = fontforge.font()
# Create a char in the unicode 41 pos (an "A")
glyph = font.createChar(41, 'A')
# Import the glyph info
glyph.importOutlines('/path/to/svg/foo.svg')
# Write the font from memory to a TTF file
font.generate('/output/math/foo.ttf')