Skip to content

fontlab_glyport.model.backend.ModelBackend · declarations 001

Back to fontlab_glyport.model.backend.ModelBackend

add_anchor

add_anchor(layer_id: str, anchor: AnchorInfo) -> str

add_axis

add_axis(font_id: str, axis: AxisInfo) -> str

add_hint

add_hint(layer_id: str, hint: HintInfo) -> None

add_instance

add_instance(font_id: str, instance: InstanceInfo) -> None

add_layer_extrema

add_layer_extrema(layer_id: str, *, force=False, check_selection=False, undo_group=...) -> None

anchor_selected

anchor_selected(anchor_id: str) -> bool

append_component

append_component(layer_id: str, component: ComponentInfo) -> str

append_glyph

append_glyph(font_id: str, name: str, *, unicodes: tuple[str, ...] = ()) -> str

append_guide

append_guide(layer_id: str, guide: GuideInfo) -> str

append_master_guide

append_master_guide(master_id: str, guide: GuideInfo) -> str

append_path

append_path(layer_id: str, path: PathInfo) -> str

background_layer

background_layer(layer_id: str) -> LayerInfo

begin_undo

begin_undo(name: str) -> None

can_publish_undo

can_publish_undo(font_id: str) -> bool

classes

classes(font_id: str) -> tuple[ClassInfo, ...]

clear_background_layer

clear_background_layer(layer_id: str) -> None

close_font

close_font(font_id: str, *, ignore_changes=False) -> None

component_bounds

component_bounds(component_id: str) -> tuple[float, float, float, float] | None

component_selected

component_selected(component_id: str) -> bool

correct_layer_direction

correct_layer_direction(layer_id: str) -> None

current_font_id

current_font_id() -> str | None

current_layers

current_layers(font_id: str) -> tuple[tuple[str, str], ...]

current_master

current_master(font_id: str) -> str | None

dark_mode

dark_mode() -> bool

decompose_component

decompose_component(layer_id: str, component_id: str, *, on_detach: Callable[[], None]) -> None

decompose_layer_components

decompose_layer_components(layer_id: str) -> None

discard_undo

discard_undo() -> None

draw_layer

draw_layer(layer_id: str, pen, *, points=False, contours=True, components=True) -> None

edit_view

edit_view(font_id: str) -> EditViewInfo | None

end_undo

end_undo() -> None

features

features(font_id: str) -> FeaturesInfo

font_info

font_info(font_id: str) -> FontInfo

font_path

font_path(font_id: str) -> str | None

glyph_last_change

glyph_last_change(glyph_id: str) -> str | None

glyph_layers

glyph_layers(glyph_id: str) -> tuple[LayerIdentity, ...]

glyph_note

glyph_note(glyph_id: str) -> str

glyph_selected

glyph_selected(font_id: str, glyph_id: str) -> bool

glyph_tags

glyph_tags(glyph_id: str) -> tuple[str, ...]

glyphs

glyphs(font_id: str) -> tuple[GlyphInfo, ...]

guide_selected

guide_selected(guide_id: str) -> bool