googlefonts / googlefonts/glyphsLib

Ability to specify which instances and master should be converted to designspace

Open
#485 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
201
Forks
56
Avg merge
17m
Merged PRs (30d)
1

Description

GlyphsLib currently uses all masters and instances to make a designspace file. I've come across many .glyphs files which have experimental/wip instances or masters which should be ignored. It would be nice to have optional params on to_designspace which would allow users to specify what they want.

We also have a situation where our api only supports the wght axis atm so we need to manually split .glyphs files ourselves which is bad.

This may be a niche request so feel free to ignore.

Contributor guide

Open the contributing guide

Research direction

Start at the Python to_designspace entry point and trace how it currently selects all masters and instances. Define optional selection parameters for masters and instances, including the wght-only use case, and verify that only the selected inputs are emitted in the designspace.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.