Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: importing FontForge files #42

Open
szabi opened this issue Apr 7, 2023 · 2 comments
Open

Feature Request: importing FontForge files #42

szabi opened this issue Apr 7, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@szabi
Copy link

szabi commented Apr 7, 2023

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

@szabi szabi added the enhancement New feature or request label Apr 7, 2023
@epilys
Copy link
Owner

epilys commented Apr 7, 2023

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.

@jenskutilek
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants