mekkablue / Glyphs-Scripts

Python scripts for the Glyphs font editor
http://glyphsapp.com/
Apache License 2.0
387 stars 103 forks source link

Brace and Bracket Manager crash #305

Closed clauseggers closed 1 year ago

clauseggers commented 1 year ago

Trying to re-map selected glyphs, then get:

Brace and Bracket Manager Report for Playfair
/Users/claus/Git/clauseggers/Playfair/sources/Playfair-2_1-Roman.glyphs

🔢 Attempting Optical size: 75 → 95
Brace and Bracket Manager Error: 'a01'
Traceback (most recent call last):
  File "Brace Layer Manager.py", line 235, in BraceLayerManagerMain
    axisLimits = axisRules[axisID]
  File "_convenience_mapping.py", line 18, in __getitem__objectForKey_
    return container_unwrap(res, KeyError, key)
  File "_convenience.py", line 113, in container_unwrap
    raise exc_type(*exc_args)
KeyError: 'a01'

Before this, I changed my masters from widths 75 and 150 to 95 and 114.

clauseggers commented 1 year ago

I can see that selecting fewer glyphs to run this on will work.

mekkablue commented 1 year ago

It chokes on (the first master of) a specific glyph. I’ll add a report line, so you can track down in which glyph it is happening.