fontlab_pens.fontgate · declarations 001
FONTGATE_NODE_TYPES
module-attribute
FONTGATE_NODE_TYPES
FontGate fgNode type name for each staged_node_kinds kind.
draw
draw(target: Any, pen: AbstractPen, *, components: bool = True, transform: bool = True) -> None
Segment-pen reader: draw_points through PointToSegmentPen.
draw_contour_points
draw_contour_points(contour: Any, pen: AbstractPointPen, transform: tuple | None = None) -> None
Emit one fgContour as UFO points, optionally through a 6-tuple transform.
A closed contour whose last node repeats a Move start (as native fgPen writes it) loses the duplicate; deliberate repeated On points stay.
draw_points
draw_points(target: Any, pen: AbstractPointPen, *, components: bool = True, transform: bool = True) -> None
Draw an fgLayer (all elements, layer × element matrix) or one fgShape.
components is accepted for symmetry with fontlab_pens.fontlab.draw_points;
FontGate layers expose component placements as ordinary elements with
matrices (measured), so they are always drawn as contours. With
transform=False the native coordinates are drawn unmapped.
edit_geometry_ready
edit_geometry_ready(target: Any) -> bool
True when every contour of the target is valid pen geometry.
Provisional point edits stay in Python until they validate; nothing is guessed or repaired.