Skip to content

Duplicate Current Layer

Back up the current master layer or all master layers of selected glyphs.

What it does: Choose current or all masters, a custom suffix and inspect existing backups. Names use backup , with (2), (3) on collisions. Names with @, # or |temp|, exact master names, and names that Restore would read as another master are refused.

How it works: The non-modal panel uses fly.ap.contours.selection.panel.model. Copies keep repaired shape and node metadata (fl#8516, fl#8538). The shown layer stays active. Each Apply is recorded as one Undo step through fly.ap.core.history.glyphs and read back. Auto owners and bases are listed and kept. Apply discloses queued ids and their possible date changes.

Why this design: FontLab's Layers panel duplicates one layer. This adds all-master backup, custom naming and an inventory before risky edits.

How to use: Select glyphs, open the panel, choose the scope and suffix, then Back up.

Benefit: Keep copies of several masters with one action before redesigning them.

Credit: Independent rewrite after Pedro Arilla's "Duplicate current layer" (Apache-2.0), extended from the author's own FontLab sample masters_backup_layer.py, Apache-2.0.

Run Masters > Duplicate Current Layer from FontLab's Scripts menu.

Read installation and working with scripts before use.

Source identity

SHA256: a52430839d688fc55a49cf8016ae55c09bf3a7d61f39291c9c14efe786a13486

Python source at f4c16f20ef10