Skip to content

fontlab_glyport.model.backend.ModelBackend

ModelBackend

All data/mutation is explicit; no native objects cross this boundary.

Source bases

  • Protocol (not resolved from selected source)

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
add_anchor function (self, layer_id: str, anchor: AnchorInfo) -> str
add_axis function (self, font_id: str, axis: AxisInfo) -> str
add_hint function (self, layer_id: str, hint: HintInfo) -> None
add_instance function (self, font_id: str, instance: InstanceInfo) -> None
add_layer_extrema function (self, layer_id: str, *, force=False, check_selection=False, undo_group=...) -> None
anchor_selected function (self, anchor_id: str) -> bool
append_component function (self, layer_id: str, component: ComponentInfo) -> str
append_glyph function (self, font_id: str, name: str, *, unicodes: tuple[str, ...]=()) -> str
append_guide function (self, layer_id: str, guide: GuideInfo) -> str
append_master_guide function (self, master_id: str, guide: GuideInfo) -> str
append_path function (self, layer_id: str, path: PathInfo) -> str
background_layer function (self, layer_id: str) -> LayerInfo
begin_undo function (self, name: str) -> None
can_publish_undo function (self, font_id: str) -> bool
classes function (self, font_id: str) -> tuple[ClassInfo, ...]
clear_background_layer function (self, layer_id: str) -> None
close_font function (self, font_id: str, *, ignore_changes=False) -> None
component_bounds function (self, component_id: str) -> tuple[float, float, float, float] | None
component_selected function (self, component_id: str) -> bool
correct_layer_direction function (self, layer_id: str) -> None
current_font_id function (self) -> str | None
current_layers function (self, font_id: str) -> tuple[tuple[str, str], ...]
current_master function (self, font_id: str) -> str | None
dark_mode function (self) -> bool
decompose_component function (self, layer_id: str, component_id: str, *, on_detach: Callable[[], None]) -> None
decompose_layer_components function (self, layer_id: str) -> None
discard_undo function (self) -> None
draw_layer function (self, layer_id: str, pen, *, points=False, contours=True, components=True) -> None
edit_view function (self, font_id: str) -> EditViewInfo | None
end_undo function (self) -> None
features function (self, font_id: str) -> FeaturesInfo
font_info function (self, font_id: str) -> FontInfo
font_path function (self, font_id: str) -> str | None
glyph_last_change function (self, glyph_id: str) -> str | None
glyph_layers function (self, glyph_id: str) -> tuple[LayerIdentity, ...]
glyph_note function (self, glyph_id: str) -> str
glyph_selected function (self, font_id: str, glyph_id: str) -> bool
glyph_tags function (self, glyph_id: str) -> tuple[str, ...]
glyphs function (self, font_id: str) -> tuple[GlyphInfo, ...]
guide_selected function (self, guide_id: str) -> bool
hints function (self, layer_id: str) -> tuple[HintInfo, ...]
insert_path function (self, layer_id: str, index: int, path: PathInfo) -> str
insert_path_node function (self, path_id: str, index: int, node: NodeInfo, *, on_attach: Callable[[str], None] | None=None) -> str
instances function (self, font_id: str) -> tuple[InstanceInfo, ...]
is_valid function (self, id: str) -> bool
kerning function (self, font_id: str, master_id: str) -> tuple[KerningPair, ...]
kerning_classes function (self, font_id: str, master_id: str | None=None) -> tuple[KerningClassInfo, ...]
layer function (self, glyph_id: str, master_id: str) -> LayerInfo
layer_bounds function (self, layer_id: str) -> tuple[float, float, float, float] | None
layer_metrics_key function (self, layer_id: str, side: str) -> str | None
layer_vertical_width function (self, layer_id: str) -> float | None
lib function (self, id: str) -> dict
list_fonts function (self) -> tuple[str, ...]
make_node_first function (self, node_id: str) -> None
mark function (self, id: str) -> int
master_guides function (self, master_id: str) -> tuple[GuideInfo, ...]
master_metrics function (self, master_id: str) -> MasterMetrics
master_zones function (self, master_id: str) -> tuple[tuple[float, float], ...]
node_name function (self, node_id: str) -> str | None
node_selected function (self, node_id: str) -> bool
open_edit_view function (self, font_id: str) -> None
outline_layer function (self, layer_id: str) -> LayerInfo
path_attributes function (self, path_id: str) -> dict
prepare_collection function (self, layer_id: str, field: str, *, state=None) -> None
redraw_edit_view function (self, font_id: str) -> None
remove_anchor function (self, layer_id: str, anchor_id: str) -> None
remove_axis function (self, font_id: str, index: int) -> None
remove_component function (self, layer_id: str, component_id: str) -> None
remove_glyph function (self, font_id: str, glyph_id: str) -> None
remove_guide function (self, layer_id: str, guide_id: str) -> None
remove_hint function (self, layer_id: str, index: int) -> None
remove_instance function (self, font_id: str, index: int) -> None
remove_layer_overlap function (self, layer_id: str, *, check_selection=False, undo_group=...) -> None
remove_path function (self, layer_id: str, path_id: str) -> None
rename_class function (self, font_id: str, name: str, new_name: str) -> None
rename_glyph function (self, font_id: str, glyph_id: str, name: str) -> None
replace_kerning function (self, font_id: str, master_id: str, pairs: tuple[KerningPair, ...]) -> None
restore_collection function (self, layer_id: str, state: object) -> None
revision function (self, font_id: str) -> object
save_font function (self, font_id: str, path: str | None=None, *, make_copy=False) -> None
set_anchor_name function (self, anchor_id: str, name: str) -> None
set_anchor_position function (self, anchor_id: str, x: float, y: float) -> None
set_anchor_selected function (self, anchor_id: str, value: bool) -> None
set_axis function (self, font_id: str, index: int, axis: AxisInfo) -> None
set_class function (self, font_id: str, name: str, glyphs: tuple[str, ...] | None) -> None
set_component_name function (self, component_id: str, name: str) -> None
set_component_position function (self, component_id: str, x: float, y: float) -> None
set_component_selected function (self, component_id: str, value: bool) -> None
set_component_transform function (self, component_id: str, transform: Transform) -> None
set_current_master function (self, font_id: str, master_id: str) -> None
set_edit_cursor function (self, font_id: str, index: int) -> None
set_edit_glyphs function (self, font_id: str, lines: tuple[tuple[str, ...], ...]) -> None
set_feature function (self, font_id: str, name: str, code: str | None) -> None
set_feature_prefix function (self, font_id: str, code: str) -> None
set_font_info function (self, font_id: str, **changes) -> None
set_font_selection function (self, font_id: str, glyph_ids: tuple[str, ...]) -> None
set_glyph_selected function (self, font_id: str, glyph_id: str, value: bool) -> None
set_glyph_tags function (self, glyph_id: str, tags: tuple[str, ...]) -> None
set_glyph_unicodes function (self, glyph_id: str, values: tuple[str, ...]) -> None
set_guide function (self, guide_id: str, **changes) -> None
set_guide_selected function (self, guide_id: str, value: bool) -> None
set_hint function (self, layer_id: str, index: int, changes: dict) -> None
set_instance function (self, font_id: str, index: int, changes: dict) -> None
set_kerning function (self, font_id: str, master_id: str, left: str, right: str, value: float | None) -> None
set_kerning_group function (self, font_id: str, glyph_id: str, side: str, value: str | None) -> None
set_layer_metrics_key function (self, layer_id: str, side: str, value: str | None) -> None
set_layer_width function (self, layer_id: str, width: float) -> None
set_lib function (self, id: str, data: dict) -> None
set_mark function (self, id: str, hue: int) -> None
set_master_axes function (self, master_id: str, axes: tuple[float, ...]) -> None
set_master_info function (self, master_id: str, **changes) -> None
set_master_italic_angle function (self, master_id: str, value: float) -> None
set_master_zone function (self, master_id: str, index: int, position: float, size: float) -> None
set_node_connection function (self, node_id: str, connection: int) -> None
set_node_name function (self, node_id: str, name: str) -> None
set_node_position function (self, node_id: str, x: float, y: float) -> None
set_node_selected function (self, node_id: str, selected: bool) -> None
set_node_smooth function (self, node_id: str, smooth: bool) -> None
set_node_type function (self, node_id: str, kind: NodeType) -> None
set_path_attributes function (self, path_id: str, values: dict) -> None
set_path_nodes function (self, path_id: str, nodes: tuple[NodeInfo, ...], closed: bool) -> None
snapshot_collection function (self, layer_id: str, *, stage=False) -> object
supports_anchor_selection attribute bool
supports_component_selection attribute bool
supports_guide_selection attribute bool
transform_layer function (self, layer_id: str, matrix: Transform) -> None
update_layer_metrics function (self, layer_id: str) -> None
validate_collection function (self, layer_id: str, field: str, infos: tuple) -> None
validate_component_expansion function (self, layer_id: str, components: tuple[ComponentInfo, ...]) -> None