Skip to content

fontlabapp.studios.interpolation_doctor.model

model

Interpolation Doctor findings: compatibility, counts, literal reports and the blend.

What: pure readers over explicit FontLab layers (flGlyph.findLayer or flGlyph.layers; never fgGlyph) that rebuild the findings of ten Scriptmix scripts: Masters > Compatibility Check (signature/check), Anchors > Compatibility Report (anchor_sets), Components > Compatibility (component_lists/odd_masters), Contours > Node Statistics (layer_counts/odd_cells), Reports > Master Node Compatibility Report (node_report), Reports > Why You Not Compatible (why_report), Reports > Point Counter (point_report), Reports > Point Counter (Master Layers) (master_point_report), Masters > Interpolation Preview (outline/problem/blend) and Contours > Make Compatible (compatible_plan). Report text is the originals' literal output. Why: studios may not import fontlabapp.masters/contours, so the small readers are restated here with the same counter definitions.

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
ASPECTS attribute
EPSILON attribute
MISSING_LAYER attribute
Outline attribute
Point attribute (shared captured text)
SHAPE_NOTE attribute
anchor_sets function (glyph: Any, masters: Sequence[str]) -> dict[str, list[str] | None] | None {master: sorted anchor names, None for auto}, or None when no master carries anchors.
anchors_differ function (sets: Mapping[str, list[str] | None]) -> bool
blend function (a: Outline, b: Outline, t: float) -> Outline
cell_text function (value: tuple[int, int] | None) -> str
check function (glyph: Any, masters: Sequence[str]) -> tuple[dict[str, tuple | None], bool, list[str]] ({master: signature or None for auto}, compatible, problems) across the present masters.
compatible_plan function (master: str, layers: Mapping[str, Any], masters: Sequence[str], notes: Callable[[Any], list[str]]) -> list[C… Scriptmix <code>plan&#95;content</code><code>: lines of </code><code>master</code> that are cubic in any other master become cubic.
component_lists function (glyph: Any, masters: Sequence[str]) -> dict[str, list[str]] | None {master: component base names in order}, or None when no master has components.
component_name function (shape: Any) -> str The component's base glyph name; the shape name when the data has none.
counts function (layer: Any) -> Counts Scriptmix point counter: handles are off/curve nodes; an on node after a handle is a curve.
counts_differ function (cells: Mapping[str, Any]) -> bool
editable_contours function (layer: Any, notes: Callable[[Any], list[str]]) -> list[Any]
first_difference function (reference: Sequence[str], tested: Sequence[str]) -> tuple[int, str | None, str | None] | None
foreground_layers function (glyph: Any, masters: Sequence[str]) -> list[Any] Not mask, not service; master layers first in font master order, then the rest in stored order.
glyph_changes function (master: str, layers: Mapping[str, Any], masters: Sequence[str], notes: Callable[[Any], list[str]]) -> list[C… Check every master first; a structural problem keeps the glyph whole with one note row.
layer_counts function (layer: Any) -> tuple[int, int] | None (own contours, nodes) drawn in the layer; None for an auto layer.
master_layers function (glyph: Any, masters: Sequence[str]) -> dict[str, Any] {master: layer} for the masters where the glyph has a real layer.
master_point_report function (rows: Sequence[tuple[str, Counts]]) -> str Literal Scriptmix Point Counter (Master Layers) text, one block per master layer.
most_common function (values: Sequence[Any]) -> Any Scriptmix <code>max(set(values), key=values.count)</code> with a stable tie-break (first seen).
node_cells function (glyph: Any, masters: Sequence[str]) -> dict[str, tuple[int, int] | None]
node_kinds function (contour: Any) -> list[str] Scriptmix <code>&#95;records.nodes</code>: line, curve, qcurve or offcurve per node, start node first.
node_points function (contour: Any) -> list[Point]
node_report function (groups: Sequence[tuple[str, Sequence[tuple[str, Sequence[Sequence[str]]]]]]) -> str Literal Scriptmix text for (glyph, [(master, paths), ...]) groups; every master versus the first.
odd_cells function (cells: Mapping[str, Any]) -> list[str] Masters whose counts differ from the most common value (auto layers never odd).
odd_masters function (lists: Mapping[str, list[str]], masters: Sequence[str]) -> list[str] Masters whose list differs from the first present master's.
outline function (layer: Any) -> Outline Every shape's contours (components included) in layer coordinates.
own_contours function (layer: Any) -> list[Any] The contours of the layer's own (non-component) shapes, in order.
paths function (layer: Any) -> list[list[str]]
point_report function (groups: Sequence[tuple[str, Sequence[tuple[str, Counts]]]]) -> str Literal Scriptmix Point Counter text; "?
problem function (a: Outline, b: Outline) -> str | None Why two outlines cannot interpolate; None when they can.
report_masters function (glyph: Any, masters: Sequence[str]) -> list[Any] Master Node Compatibility Report: every font master in order; a missing one refuses.
shape_notes function (layer: Any) -> list[str] Scriptmix <code>outline&#95;shapes</code> notes: shared or scaled/rotated own outlines are kept whole.
signature function (layer: Any) -> tuple
stored_foreground function (glyph: Any) -> list[Any] Point Counter: every layer that is not mask or service, in stored order.
stored_masters function (glyph: Any) -> list[Any] Point Counter (Master Layers): the native master layers, in stored order.
summary function (sig: tuple) -> tuple[int, int, int, int] (contours, nodes, anchors, components) of a signature.
why_layer function (layer: Any) -> Layer
why_report function (groups: Sequence[tuple[str, Sequence[Layer]]]) -> str Literal Scriptmix text: adjacent foreground layers compared in order.
write_compatible function (edits: Iterable[tuple[Any, tuple[Any, ...], int]]) -> None