fontlabapp.studios.interpolation_doctor.model · declarations 001
Back to fontlabapp.studios.interpolation_doctor.model
ASPECTS
module-attribute
ASPECTS
EPSILON
module-attribute
EPSILON
MISSING_LAYER
module-attribute
MISSING_LAYER
Outline
module-attribute
Outline
SHAPE_NOTE
module-attribute
SHAPE_NOTE
anchor_sets
anchor_sets(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
anchors_differ(sets: Mapping[str, list[str] | None]) -> bool
cell_text
cell_text(value: tuple[int, int] | None) -> str
check
check(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
compatible_plan(master: str, layers: Mapping[str, Any], masters: Sequence[str], notes: Callable[[Any], list[str]]) -> list[Change]
Scriptmix plan_content: lines of master that are cubic in any other master become cubic.
component_lists
component_lists(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
component_name(shape: Any) -> str
The component's base glyph name; the shape name when the data has none.
counts
counts(layer: Any) -> Counts
Scriptmix point counter: handles are off/curve nodes; an on node after a handle is a curve.
counts_differ
counts_differ(cells: Mapping[str, Any]) -> bool
editable_contours
editable_contours(layer: Any, notes: Callable[[Any], list[str]]) -> list[Any]
first_difference
first_difference(reference: Sequence[str], tested: Sequence[str]) -> tuple[int, str | None, str | None] | None
foreground_layers
foreground_layers(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
glyph_changes(master: str, layers: Mapping[str, Any], masters: Sequence[str], notes: Callable[[Any], list[str]]) -> list[Change]
Check every master first; a structural problem keeps the glyph whole with one note row.
layer_counts
layer_counts(layer: Any) -> tuple[int, int] | None
(own contours, nodes) drawn in the layer; None for an auto layer.
master_layers
master_layers(glyph: Any, masters: Sequence[str]) -> dict[str, Any]
{master: layer} for the masters where the glyph has a real layer.
master_point_report
master_point_report(rows: Sequence[tuple[str, Counts]]) -> str
Literal Scriptmix Point Counter (Master Layers) text, one block per master layer.
most_common
most_common(values: Sequence[Any]) -> Any
Scriptmix max(set(values), key=values.count) with a stable tie-break (first seen).
node_cells
node_cells(glyph: Any, masters: Sequence[str]) -> dict[str, tuple[int, int] | None]
node_kinds
node_kinds(contour: Any) -> list[str]
Scriptmix _records.nodes: line, curve, qcurve or offcurve per node, start node first.
node_report
node_report(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
odd_cells(cells: Mapping[str, Any]) -> list[str]
Masters whose counts differ from the most common value (auto layers never odd).
odd_masters
odd_masters(lists: Mapping[str, list[str]], masters: Sequence[str]) -> list[str]
Masters whose list differs from the first present master's.
outline
outline(layer: Any) -> Outline
Every shape's contours (components included) in layer coordinates.
own_contours
own_contours(layer: Any) -> list[Any]
The contours of the layer's own (non-component) shapes, in order.
paths
paths(layer: Any) -> list[list[str]]
point_report
point_report(groups: Sequence[tuple[str, Sequence[tuple[str, Counts]]]]) -> str
Literal Scriptmix Point Counter text; "? " marks a count new to the previous two layers.
problem
Why two outlines cannot interpolate; None when they can.
report_masters
report_masters(glyph: Any, masters: Sequence[str]) -> list[Any]
Master Node Compatibility Report: every font master in order; a missing one refuses.
shape_notes
shape_notes(layer: Any) -> list[str]
Scriptmix outline_shapes notes: shared or scaled/rotated own outlines are kept whole.
signature
signature(layer: Any) -> tuple
stored_foreground
stored_foreground(glyph: Any) -> list[Any]
Point Counter: every layer that is not mask or service, in stored order.
stored_masters
stored_masters(glyph: Any) -> list[Any]
Point Counter (Master Layers): the native master layers, in stored order.
summary
summary(sig: tuple) -> tuple[int, int, int, int]
(contours, nodes, anchors, components) of a signature.