googlefonts / googlefonts/glyphsLib

glyphsLib mangles the master name for ExtraLight from Glyphs 2

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

Description

Trying to use glyphsLib to do some things and the ExtraLight master and instances get renamed to "Light Extra" if format is Glyphs 2.

```
import glyphsLib
font = glyphsLib.GSFont('glyphsLibTest.glyphs')
font.save('glyphsLibTest-saved.glyphs')
```
And ExtraLight is now "Light Extra"

[glyphsLibTest.glyphs.zip](https://github.com/googlefonts/glyphsLib/files/10938052/glyphsLibTest.glyphs.zip)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the provided glyphsLibTest.glyphs archive using glyphsLib.GSFont to load and save the Glyphs 2 file. Trace the Glyphs 2 conversion path responsible for the master and instance names, and verify that ExtraLight remains unchanged after saving.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.