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

Insert Glyph to Background.py & Smart Components

Open Mark2Mark opened this issue 3 years ago • 0 comments

Lovely script, thanks a lot for it.

In Glyphs 3, when unchecking "As Component" and inserting a smart glyph (with smart layers), it adds the corresponding sub-layers, but unfortunately alwaus only the ones from the last master.

e.g.

Currently happening:

┌─Source Glyph─┐        ┌─Target Glyph─┐
│              │        │              │
│ REGULAR      │        │ REGULAR      │
│              │        │              │
│   narrow     │      ┌▶│   narrow     │
│              │    ┌─┘ │              │
│   wide       │  ┌─┘ ┌▶│   wide       │
│              │┌─┘ ┌─┘ │              │
│ BLACK       ┌┼┘ ┌─┘   │ BLACK        │
│           ┌─┘│┌─┘     │              │
│   narrow ─┘ ┌┼┘ ─────▶│   narrow     │
│           ┌─┘│        │              │
│   wide   ─┘  │  ─────▶│   wide       │
└──────────────┘        └──────────────┘
                                        
As opposed to the expected:
                                        
┌─Source Glyph─┐        ┌─Target Glyph─┐
│              │        │              │
│ REGULAR      │        │ REGULAR      │
│              │        │              │
│   narrow     │───────▶│   narrow     │
│              │        │              │
│   wide       │───────▶│   wide       │
│              │        │              │
│ BLACK        │        │ BLACK        │
│              │        │              │
│   narrow     │───────▶│   narrow     │
│              │        │              │
│   wide       │───────▶│   wide       │
└──────────────┘        └──────────────┘

Mark2Mark avatar Jan 17 '22 21:01 Mark2Mark