Skip to content

Display Next Layer

Show the next layer of each selected glyph in the Glyph window.

What it does: Cycle the displayed layer of the selected glyph slot(s) to the next layer of the same master. After the last layer, wrap to the first one.

How it works: FontLab binds a layer to a master by its name. The text before the first "@" (or "#") identifies master and alternate layers. Backups use backup ; legacy @ and space-prefixed backups also take part, resolved by the longest master prefix. Masks and service layers stay out. The script reads the shown layer of each selected slot, lists the glyph layers of the same master in glyph order, and picks the next one. A slot with an explicit layer name gets the new name. A slot that follows the active layer gets a new active layer for its glyph.

Why this design: - fly.ap.masters.inspect.model.associated_master resolves native layer names; the same backup resolver as Restore Backup Layer adds plain backup names. - All slots are planned first. One bad slot stops the run before any change. - The script writes no font data. No Undo step is needed.

How to use: Open a Glyph window. Select a glyph. Run the script. Assign a shortcut to this script and to "Display Previous Layer" to walk through backups fast.

Benefit: One key press compares master, backup and alternate layers in place.

Credit: Behaviour after Pedro Arilla's Glyphs script "Display next layer" (Apache-2.0). Independent rewrite. No source code was copied.

Run Masters > Display Next Layer from FontLab's Scripts menu.

Read installation and working with scripts before use.

Source identity

SHA256: da6b423b0e3c8cec550e183a08b488138f2ddf8ab673126c73f8d3332f2b259f

Python source at f4c16f20ef10