fontlabapp.studios.transform_studio.geometry · declarations 001
Back to fontlabapp.studios.transform_studio.geometry
EPS
module-attribute
EPS
MATRIX_TOLERANCE
module-attribute
MATRIX_TOLERANCE
NODE_TOLERANCE
module-attribute
NODE_TOLERANCE
ORIGIN_ERROR
module-attribute
ORIGIN_ERROR
about
linear applied around the point (ox, oy).
anchor_steps
Anchor moves under matrix and the fl#8527 problem text (or "").
finite
finite(*values: float) -> bool
ghost
The layer's own outlines in glyph space as a TGlyph overlay (components are not drawn).
glyph_points
glyph_points(shape: Shape) -> list[tuple[float, float]]
Every node of shape in glyph space.
ink_box
ink_box(contours: Iterable[Sequence[tuple[float, float, bool]]]) -> tuple[float, float, float, float] | None
Exact (x, y, w, h) of cubic/quadratic contours given as (x, y, on) lists in glyph space.
layer_ink
Ink box of the layer's own outlines after extra (components excluded).
simulate
The snapshot layer after steps (baked shapes get an identity transform).
subject
subject(names: Sequence[str]) -> str
transform_changes
transform_changes(layer: Layer, matrix: Affine, anchors: bool, note: str, *, bake_only: bool = False) -> list[Change]
Rows for matrix applied to every shape (and optionally anchors) of layer.
FontLab's layer-transform rule, as in fontlabapp.contours.transform:
an own, unshared outline whose transform only moves is baked (new node
positions); every other shape (components, shared outlines, scaled or
rotated own outlines) keeps its nodes and gets the composed shape
transform, so the whole glyph moves together. With bake_only
(Smart Slant) components are skipped; its caller refuses them first.