Skip to content

fontlab_glyport.model.fontlab_backend.FontLabBackend · declarations 004

Back to fontlab_glyport.model.fontlab_backend.FontLabBackend

set_node_connection

set_node_connection(node_id: str, connection: int) -> None

set_node_name

set_node_name(node_id, name)

set_node_position

set_node_position(node_id: str, x: float, y: float) -> None

set_node_selected

set_node_selected(node_id: str, selected: bool) -> None

set_node_smooth

set_node_smooth(node_id: str, smooth: bool) -> None

set_node_type

set_node_type(node_id, kind)

set_path_attributes

set_path_attributes(path_id, values)

set_path_nodes

set_path_nodes(path_id: str, nodes, closed: bool) -> None

flContour.assign(list(flNode)) keeps the contour (and its shape position); points are mapped into the shape's local coordinates.

snapshot_collection

snapshot_collection(layer_id, *, stage=False)

Capture rollback bindings and stage clones without touching the layer.

Collection preparation attaches fresh working clones before mutation, including shapes already owned by an enclosing Undo group. Originals stay attached until preparation records the history baseline.

snapshot_layer

snapshot_layer(layer_id)

stage_collection

stage_collection(layer_id, field, infos)

Construct detached input values before removing any live members.

supports_anchor_selection class-attribute instance-attribute

supports_anchor_selection

supports_guide_selection class-attribute instance-attribute

supports_guide_selection

transform_layer

transform_layer(layer_id: str, matrix) -> None

update_layer_metrics

update_layer_metrics(layer_id)

validate_collection

validate_collection(layer_id, field, infos)

validate_component_expansion

validate_component_expansion(layer_id, components) -> None

Check native reference layers before the first component is detached.

volatile_collections class-attribute instance-attribute

volatile_collections

Use on the UI thread; raw packages must be workspace-registered.

Unregistered packages must be supplied as OwnedPackage, retaining their source fgFont so accessing metadata never invokes the unsafe fgPackage getter.