freemix-glyphsapp icon indicating copy to clipboard operation
freemix-glyphsapp copied to clipboard

Toggle Backup Layer does not work properly when OT features are active

Open justanotherfoundry opened this issue 5 years ago • 2 comments

Seems that currentTab.layers.values() returns the underlying text.

justanotherfoundry avatar Nov 05 '19 14:11 justanotherfoundry

the you can use currentTab.composedLayers

schriftgestalt avatar Nov 05 '19 21:11 schriftgestalt

Thanks, very helpful!

I just updated the script: https://github.com/justanotherfoundry/freemix-glyphsapp/commit/80dec6116812175cba306ff0ed2339c8ee196618

However, the script now relies on currentTab.composedLayers and currentTab.layers having the same length and order. If we have a ligature substitution then simply using the same index to find matching raw text and composed layers does not work. @schriftgestalt Do you have an idea how to find the matching layers more reliably?

justanotherfoundry avatar Nov 06 '19 08:11 justanotherfoundry