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

(Like Scalefast) If the letter "H" is made up of components, there's a traceback #14

Open
colinmford opened this issue Oct 8, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@colinmford
Copy link
Member

It can't make measurements because of the components

Traceback (most recent call last):
  File "/Applications/RoboFont 2.app/Contents/Resources/lib/python3.9/fontParts/base/component.py", line 276, in _drawPoints
  File "/Applications/RoboFont 2.app/Contents/Resources/lib/python3.9/fontTools/pens/pointPen.py", line 264, in addComponent
  File "/Applications/RoboFont 2.app/Contents/Resources/lib/python3.9/fontTools/pens/basePen.py", line 217, in addComponent
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 1054, in <module>
  File "main.py", line 1050, in main
  File "/Applications/RoboFont 2.app/Contents/Resources/lib/python3.9/mojo/subscriber.py", line 3803, in registerRoboFontSubscriber
  File "/Applications/RoboFont 2.app/Contents/Resources/lib/python3.9/mojo/subscriber.py", line 3482, in addRoboFontSubscriber
  File "/Applications/RoboFont 2.app/Contents/Resources/lib/python3.9/mojo/subscriber.py", line 1461, in __init__
  File "main.py", line 385, in started
  File "main.py", line 422, in reset
  File "main.py", line 176, in updateScaler
  File "/Users/jamieotelsberg/Library/Application Support/RoboFont/plugins/Transmutor.roboFontExt/submodules/MutatorScale/lib/mutatorScale/objects/scaler.py", line 69, in __init__
  File "/Users/jamieotelsberg/Library/Application Support/RoboFont/plugins/Transmutor.roboFontExt/submodules/MutatorScale/lib/mutatorScale/objects/scaler.py", line 178, in addMaster
  File "/Users/jamieotelsberg/Library/Application Support/RoboFont/plugins/Transmutor.roboFontExt/submodules/MutatorScale/lib/mutatorScale/objects/scaler.py", line 168, in _makeMaster
  File "/Users/jamieotelsberg/Library/Application Support/RoboFont/plugins/Transmutor.roboFontExt/submodules/MutatorScale/lib/mutatorScale/objects/fonts.py", line 173, in __init__
  File "/Users/jamieotelsberg/Library/Application Support/RoboFont/plugins/Transmutor.roboFontExt/submodules/MutatorScale/lib/mutatorScale/objects/fonts.py", line 180, in processDimensions
  File "/Users/jamieotelsberg/Library/Application Support/RoboFont/plugins/Transmutor.roboFontExt/submodules/MutatorScale/lib/mutatorScale/utilities/fontUtils.py", line 64, in getRefStems
  File "/Users/jamieotelsberg/Library/Application Support/RoboFont/plugins/Transmutor.roboFontExt/submodules/MutatorScale/lib/mutatorScale/utilities/fontUtils.py", line 252, in getGlyphBox
  File "/Applications/RoboFont 2.app/Contents/Resources/lib/python3.9/fontParts/base/glyph.py", line 633, in draw
  File "/Applications/RoboFont 2.app/Contents/Resources/lib/python3.9/fontParts/base/component.py", line 251, in draw
  File "/Applications/RoboFont 2.app/Contents/Resources/lib/python3.9/fontParts/base/component.py", line 259, in _draw
  File "/Applications/RoboFont 2.app/Contents/Resources/lib/python3.9/fontParts/base/component.py", line 265, in drawPoints
  File "/Applications/RoboFont 2.app/Contents/Resources/lib/python3.9/fontParts/base/component.py", line 279, in _drawPoints
  File "/Applications/RoboFont 2.app/Contents/Resources/lib/python3.9/fontTools/pens/pointPen.py", line 264, in addComponent
  File "/Applications/RoboFont 2.app/Contents/Resources/lib/python3.9/fontTools/pens/basePen.py", line 217, in addComponent
TypeError: 'NoneType' object is not subscriptable
@colinmford colinmford added the bug Something isn't working label Oct 8, 2023
@colinmford
Copy link
Member Author

This might have been solved by a new version of MutatorScale, need to make sure it gets upstreamed to the repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant