gerb icon indicating copy to clipboard operation
gerb copied to clipboard

Feature Request: importing FontForge files

Open szabi opened this issue 2 years ago • 2 comments

Support importing FontForge files would -- as a perspective -- a booster feature for adoption.

szabi avatar Apr 07 '23 04:04 szabi

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.

epilys avatar Apr 07 '23 08:04 epilys

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.

jenskutilek avatar Apr 12 '23 12:04 jenskutilek