fontlabapp.fontui.outline_compatibility_routes.compatible
compatible
Promote straight segments where corresponding masters contain cubics.
What: Promote straight segments where corresponding masters contain cubics. How: Compare each contour and segment with every declared master. Keep glyphs with mismatched contour counts, open paths or quadratic outlines. Endpoints stay. Why: Repair line-versus-cubic interpolation mismatches without moving endpoints. Use: Align starts and directions first (run Superaligner), then select glyphs, choose All masters, inspect the conversion rows, and Apply. Benefit: Repairs segment types across masters rather than merely reporting them.
The non-modal panel previews the selected glyphs and chosen masters. A glyph with shared, scaled or rotated outline shapes is kept as a whole. Automatic-layer owners are kept. Bases of automatic composites are kept unless the shared consent option is enabled. Each Apply is recorded as one Undo step through the App history writer. Reload after changing the selection.
Independent behaviour rewrite after Simon Cozens, GlyphsScripts/Make Compatible.py, MIT, copyright 2017 Simon Cozens. Repository: https://github.com/simoncozens/GlyphsScripts . No source code was copied.
Classes
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
KEY |
attribute | ||
TITLE |
attribute | ||
changes |
function | (glyph: Any, master: str, layer: Any, masters: list[str]) -> list[writer.Change] |
Keep an unsuitable glyph; allow other selected glyphs to proceed. |
contours |
function | (layer: Any) -> list[Any] |
Read editable contours; refuse omitted shapes for cross-master mapping. |
main |
function | () -> Any |
Open one non-modal panel; replace an earlier panel of the same tool. |
plan_content |
function | (glyph: Any, master: str, layer: Any, masters: list[str]) -> list[writer.Change] |
Compare corresponding segments of every declared master before planning. |
spans |
function | (contour: Any) -> list[list[Any]] |
Read complete line or cubic spans; refuse quadratic and open contours. |