fontlab_glyport.glyphsapp.fontlab_session.ModelPluginAdapter · declarations 001
Back to fontlab_glyport.glyphsapp.fontlab_session.ModelPluginAdapter
current_font
current_font()
restore_layer
restore_layer(layer, snapshot: dict) -> None
Put the snapshot back: changed paths are refilled in place, paths added since are removed, paths the preview deleted are re-inserted at their shape index with their node selection, anchors are restored. Components cannot be edited through the model, so a changed component list raises; so does any result that differs from the snapshot.
selected_layers
selected_layers() -> list
snapshot_layer
snapshot_layer(layer) -> dict
Everything a filter preview may change: width, every path (id, nodes with type, smoothness and selection, closedness), anchors, components, and the shape order (paths and components interleaved).
undo_group
undo_group(name: str)