Glyphs freezes when colouring glyphs

Something I have occasionally done for many years is to paste some text into the edit view, select all, and then add a colour label (starting with a temp copy of my font without colour labels). For example, this is an easy way to find out whether my type specimen covers all characters in the font. (In reverse, one can easily find out whether the font contains all characters in the text by copying from the edit view again, and using the diff function of a text editor.)

However, recently, Glyphs is taking extremely long for this simple operation (colouring glyphs) if the text is about 1000 characters long, and even freezes when it is around 4000 characters or more. This doesn’t seem a lot to me.

Is there anything that can be done to fix this?

I just tried with ~10000 characters and it took 30 ms. There seems to be something with your file that causes the slowdown.
Or the Sidebar filters in the font view? could you send me both, the .glyphs file and the “~/Library/Application Support/Glyphs 3/CustomFilter.plist”?

Just tested a bit more. I completely removed everything from ~/Library/Application Support/Glyphs 3. Still the same problem.

Seems like empty lines slow down the process, especially if they are at the beginning of the text. I’ll send you a file and the report in any case.

It happens when the first character in the edit view is a line break. Remove those and it will be really quick. I fixed that.

1 Like