Skip to content

Set Intermediate Layer

Add interpolated intermediate layers to selected glyphs at explicit coordinates.

What: Preview one new intermediate layer per selected glyph. Set each axis coordinate in design units, then press Add Layers. Existing layers stay. How: FontLab interpolates each glyph with interpolateInstance. The result gets a location name such as :wt=512.5 and is added through shared history.commit. The change is recorded as one Undo step. No glyph or font master is created. Why: FontLab's Layers and Masters panel can add a layer and Glyph > Reinterpolate can fill it. This panel combines the two over a selection, with a refusal report. Use: Open a font with at least two masters and declared axes. Select glyphs, run the tool, set coordinates and inspect the preview before adding layers. Benefit: Build matching intermediate locations without repeating layer setup.

Automatic glyphs and their bases, locked sources, incompatible masters, existing locations and fonts without declared axes are kept. Editor tabs and their order stay in place; this tool does not replace displayed glyph slots. Fractional coordinates are preserved. Invalid values are refused.

Independent behaviour rewrite after Reza Bohloul, RezaBohloul, Glyph/Set Intermediate Layer.py; no licence declared. Repository: https://github.com/RezaBohloul/RezaBohloul . No source code copied.

Run Masters > Set Intermediate Layer from FontLab's Scripts menu.

Read installation and working with scripts before use.

Source identity

SHA256: 1e751e9f4d541cebdc3aed8d4069c01ae0421d5cb8e528fbb9e2c66bcb711f2b

Python source at f4c16f20ef10