Mirror Across Masters
Copy the anchors of one master into the other masters of the same glyphs.
What: Takes the anchors of a source master. Moves the same-named anchors in the ticked target masters, and adds the missing ones. Optional: add only the missing anchors.
How: The x value can scale with the advance-width ratio, target over source. An anchor in the middle of a narrow Light glyph then lands in the middle of the wide Bold glyph. Positions round half up to whole units. A new anchor gets its name-derived appearance.
Why: One master carries the reference design. The others follow in one step. This is a start: interpolation or hand work refines the result.
Use: Select glyphs. Run the script. Choose the source master. Tick the target masters. Check the table. Press Mirror.
Benefit: Fast, consistent anchor sets in all masters of many glyphs.
Safety: Auto layers are listed and never edited. The script refuses the whole batch, before any history exists, when:
- an existing anchor would move to 0, 0 (FontLab cannot Redo that);
- a glyph has an automatic layer, or is the base of an automatic composite, also through other composites (FontLab rebuilds the composite and Undo does not restore it);
- several anchors on a layer share a name (the edit is ambiguous);
After the write, the script reads every value back. It reports any value that FontLab did not keep, for example under a strong rounding preference. If FontLab fails part-way, the error says that native changes may remain. The edit is recorded as one Undo step. The plan, the safety checks, the one-step write and the panel base are shared with the other anchor scripts (fly.ap.anchors.writer, fly.ap.anchors.panel.model); the planner and the controls belong to this script.
Source: the author's own FontLab sample anchors_mirror_across_masters.py, Apache-2.0. Adapted for the current FontLab 9 API.
Run Anchors > Mirror Across Masters from FontLab's Scripts menu.
Read installation and working with scripts before use.
Source identity
SHA256: 12b6534913326199952c8dd7a1406c93c24c3245dd50981139f510649593a5e0