fontlabapp.studios.anchor_studio.model · declarations 001
Back to fontlabapp.studios.anchor_studio.model
APPEARANCE
module-attribute
APPEARANCE
Name-derived pin appearance of a new anchor (FontLab flPinPoint detectAppearance).
BOUNDS_ANCHORS
module-attribute
BOUNDS_ANCHORS
DUPLICATE_ERROR
module-attribute
DUPLICATE_ERROR
Edit
module-attribute
Edit
HANDLE_SIZES
module-attribute
HANDLE_SIZES
MAX_COLUMNS
module-attribute
MAX_COLUMNS
METRICS
module-attribute
METRICS
OPPOSITES
module-attribute
OPPOSITES
OPTICAL_BUDGET
module-attribute
OPTICAL_BUDGET
ORIGIN_ERROR
module-attribute
ORIGIN_ERROR
Planner
module-attribute
Planner
REFERENCES
module-attribute
REFERENCES
Ring
module-attribute
Ring
STACK_DISTANCE
module-attribute
STACK_DISTANCE
TOLERANCE
module-attribute
TOLERANCE
bounds_changes
Place From Bounds: add or move each (name, edge, offset) anchor from the ink box.
census
census(rows: Iterable[tuple[Iterable[Pin], bool]]) -> dict[str, list[int]]
Delete By Name list: {name: [editable layers, auto layers]} over (pins, auto) rows.
centre_changes
centre_changes(facts: Facts, names: Sequence[str], reference: str, fraction: float, angle: float) -> list[Change]
Center Horizontally: move the named anchors sideways; y never changes.
column_weight
column_weight(rings: Sequence[Ring], x: float, deadline: float) -> float
Filled length of the vertical line at x under the nonzero winding rule.
delete_changes
Delete By Name: remove every anchor whose name is ticked.
duplicate_changes
Remove every extra duplicate; coincident extras only when coincident is ticked.
duplicated
duplicated(pins: Iterable[Pin], names: Iterable[str] | None = None) -> list[str]
Names carried by several pins (limited to names when given).
estimate_rings
estimate_rings(rings: Sequence[Ring], deadline: float) -> int
Optical x of closed rings, sampled in at most MAX_COLUMNS columns.
expected
The pins after edits, in snapshot order with new anchors at the end.
extremes
extremes(points: Sequence[tuple[float, float]]) -> str
"x a…b, y c…d" of the cloud, or "" when empty.
findings
findings(pins: Sequence[Pin]) -> list[tuple[str, list[int]]]
Duplicates Finder: (kind, indices) groups; the first pin of each group is kept.
"duplicate name": the same name, or name.1-style copies when name exists.
"coincident": pins of different names at one rounded position.
fmt
fmt(value: float) -> str
half_up
half_up(value: float) -> int
marker
marker(x: float, y: float, size: float) -> OverlayContour
A small diamond at (x, y) for the anchor cloud.
metric_value
metric_value(metrics: Any, attribute: str | None) -> int
A master's metric in font units; None is the baseline, 0.
opposite_changes
Remove Extraneous Mark Anchors: a mark with _top loses bottom; with _bottom, top.
optical_changes
Optical Center: report the optical x; align the x of an existing top anchor.
optical_position
optical_position(strips: Sequence[tuple[float, float]], left: float, right: float) -> float
Ink-weighted median column, moved one third of the way from the box centre.
parse_names
parse_names(text: str) -> list[str]
Anchor names typed with commas, semicolons or spaces, in order, once each.
point_text
point_text(x: float, y: float) -> str
rename_changes
Rename Bulk: rename matching anchors; empty or clashing new names are refused.
renamer
renamer(find: str, replace: str, regex: bool) -> Callable[[str], str]
The name substitution; a bad pattern raises ValueError("Pattern error: …") at once.
ring
ring(x: float, y: float, radius: float) -> OverlayContour
An octagon of radius around (x, y) for stacked anchors.