jtanadi / CheckParallelTool

Simple tool to check handles in RF
7 stars 0 forks source link

Tool occasionally causes problems with glyph editor and font overview panels #3

Open liamspradlin opened 4 years ago

liamspradlin commented 4 years ago

Occasionally, using Robofont with Check Parallel Tool installed will cause problems with the glyph editor and font overview panels and their relationship to one another. Typically, this means...

Typically the issue takes a while to manifest and it seems to me (from experiencing this several times) that the issue is triggered by opening multiple UFO files, one after the other. Sometimes just having a file open and opening another will trigger the issue.

Uninstalling Check Parallel Tool and restarting Robofont solves the issue. I've attached a screenshot here to show the other extensions I normally have installed.

Screen Shot 2019-11-09 at 10 18 26 PM
typemytype commented 4 years ago

the problem is that the extension is reusing the same guideStatus for each open window. This is not allowed as a view can only be added once to a window (or a vanilla.Group).

https://github.com/jtanadi/CheckParallelTool/blob/master/CheckParallelTool.roboFontExt/lib/checkParallel.py#L52-L53

you need to create a new statusGuide view for each glyph window, and store it in a dict-map with the glyph window as key and the statusGuide as value, so you can retrieve the status view for the current window

good luck!

jtanadi commented 4 years ago

@typemytype that makes sense, thank you!

gupta-vidit commented 4 months ago

@jtanadi Did you get a chance to fix this?

jtanadi commented 4 months ago

@gupta-vidit No, I've been out of the font loop for quite some time now, and I don't think I will be able to pick it back up any time soon. I should really archive the project at this point.