Open szabi opened 1 year ago
Notes:
I found this: https://github.com/fontforge/sfd2ufo/blob/master/Lib/sfd2ufo/__init__.py. There doesn't seem to be any converter from sdf to ufo that doesn't depend on the fontforge python module. This script can be added temporarily with fontforge available as a hard requirement. The Glyphs import script does the same more or less (though I want to bundle its dependencies in the future).
The file format is not small: https://github.com/fontforge/fontforge/blob/master/fontforge/sfd.c
Alternatively writing a converter from scratch in pure python3 or rust might be the best solution. It'd be great to have this in the first stable releases.
FWIW, I've made a barebones FontForge importer for Glyphs with Python: https://github.com/jenskutilek/Glyphs-FontForgeImport/blob/master/FontForge%20Import.glyphsPlugin/Contents/Resources/SFDImport.py
It mainly imports some font info fields and the glyph outlines, because I just wanted to be able to see the design of a font.
Support importing FontForge files would -- as a perspective -- a booster feature for adoption.