Glyphs 4 - external vector copy/paste issues including a consistent crash on attempting to undo

I’ve noticed Glyphs 4 does not appear to have the same behavior as 3 in terms of pasting vectors from Affinity, regardless of if Affinity’s setting for SVG paste is on or off. The scaling, which has always been odd, seems to be further inflated, and isn’t affected by changing the units per em settings. So before realizing I needed to scale a given letter up to 5,000+ pixels to get in the ballpark, I repeatedly would smack command-z to undo the paste, which now consistently produces an immediate app crash. I can provide the report if it’s helpful.

Edit: to clarify, I’ve been familiar with the scaling discrepancies for some time, but the behavior I’m seeing now is best illustrated by the screenshot below. On the left is the ascender to descender box I drew my letters to in Affinity. The middle is the box I drew in Glyphs 4 and pasted back to Affinity so I could try scaling up when I noticed things seemed off. Scaling to that box pasted as a still tiny shape in Glyphs 4. The final box on the right is what I scaled my letters to by trial and error to get close to the full size when pasting in Glyphs 4.

Can you send me that .glyphs file and the affinity file? Just to make sure I’ll test the same setup?

What I noticed is when you paste from Illustrator, the shape pastes as strokes. So I need to select all and apply a combine pathfinder command (remove overlap) to see my filled shape.

Can you explain that?

Never mind, my bad. So in Illustrator my shape was set as no fill and 1 pt stroke but when you paste it to Glyphs like that it shows outline in edit mode but in preview it doesn’t display anything, but Glyphs says that 1pt stroke is applied:

Not a problem actually you can just set stroke to 0 and apply fill and it seems to fix it, or just do that combine command.

Don’t do the combine. Just move the “1” from the stroke panel in the lower right.

Sorry for the delay! Will send soon

I had a look at this. I didn’t have time to fully investigate but it seems that affinity puts stuff on the clipboard in a different scale as it pastes it. The pdf data that is used between affinity and Glyphs has a quite different bounding box. Needs more research.

I found the cause: you need to set the document to use points for measurement (Document > Setup > Document Setup …). The copy a 700 unit tall rect form Glyphs to Affinity and scale everything accordingly. Then pasting back to Glyphs has the correct size.
Because that makes everything really big in Affinity, you can add a scaling factor to your glyphs file. A Point To Unit Ratio custom parameter with a value of 13,025 gets you pretty close.