fontlab_glyport.model.fontlab_backend.FontLabBackend
FontLabBackend
Source bases
Inherited member index
Source-proven inherited members; local declarations override these entries.
add_layer_extrema— defined byfontlab_glyport.model.outline_ops.OutlineOperations.add_layer_extremacorrect_layer_direction— defined byfontlab_glyport.model.outline_ops.OutlineOperations.correct_layer_directiondecompose_layer_components— defined byfontlab_glyport.model.outline_ops.OutlineOperations.decompose_layer_componentsdraw_layer— defined byfontlab_glyport.model.outline_ops.OutlineOperations.draw_layerremove_layer_overlap— defined byfontlab_glyport.model.outline_ops.OutlineOperations.remove_layer_overlap
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 |
|---|---|---|---|
__init__ |
function | (self, packages: Iterable[object] | None=None) |
|
add_anchor |
function | (self, layer_id: str, anchor: AnchorInfo) -> str |
|
add_axis |
function | (self, font_id: str, axis: AxisInfo) -> str |
Native fact (glyport-r020/probe-axes-instances-run1): flAxis(name, tag, short name) and addAxis; masters read the default coordinate until set. |
add_hint |
function | (self, layer_id: str, hint: HintInfo) -> None |
|
add_instance |
function | (self, font_id: str, instance: InstanceInfo) -> None |
|
anchor_selected |
function | (self, anchor_id) |
|
append_component |
function | (self, layer_id: str, component: ComponentInfo) -> str |
FontLab 9.0.9780 offers no working component constructor from Python (flLayer.setGlyphComponents rejects every argument form; addComponent only records a recipe entry). |
append_glyph |
function | (self, font_id: str, name: str, *, unicodes: tuple[str, ...]=()) -> str |
Construct inside the target package from a value-only VFJ recipe. |
append_guide |
function | (self, layer_id: str, guide: GuideInfo) -> str |
|
append_layer |
function | (self, glyph_id, master_id, name, snapshot) |
|
append_master_guide |
function | (self, master_id, guide) |
|
append_path |
function | (self, layer_id: str, path: PathInfo) -> str |
|
background_layer |
function | (self, layer_id) |
|
begin_undo |
function | (self, name: str) -> None |
|
cache_revision |
function | (self, font_id, key) |
Validate glyph-owned snapshots against notified native edits and Undo. |
can_publish_undo |
function | (self, font_id: str) -> bool |
Check package registration before dereferencing any stored children. |
classes |
function | (self, font_id: str) -> tuple[ClassInfo, ...] |
|
clear_background_layer |
function | (self, layer_id) |
|
close_font |
function | (self, font_id: str, *, ignore_changes=False) -> None |
Close a document, requiring deliberate permission to discard edits. |
component_bounds |
function | (self, component_id) |
|
component_selected |
function | (self, component_id) |
|
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) |
|
decompose_component |
function | (self, layer_id: str, component_id: str, *, on_detach: Callable[[], None]) -> None |
|
discard_undo |
function | (self) -> None |
Drop pending wrappers locally; do not call any native API. |
edit_view |
function | (self, font_id: str) -> EditViewInfo | None |
|
end_undo |
function | (self) -> None |
|
features |
function | (self, font_id: str) -> FeaturesInfo |
|
font_id_for |
function | (self, package) -> str | None |
Font id of a native package (e.g. a signal argument) in this scope. |
font_info |
function | (self, font_id: str) -> FontInfo |
|
font_path |
function | (self, font_id: str) -> str | None |
FlPackage.fileName (echopy fontlab.pyi); unsaved fonts have no path. |
glyph_info |
function | (self, glyph_id) |
Read one glyph's metadata without listing the font. |
glyph_last_change |
function | (self, glyph_id: str) -> str | None |
FlGlyph.lastModified (QDateTime) as local <code>YYYY-MM-DD HH:MM:SS</code>. |
glyph_layers |
function | (self, glyph_id) |
Master order first, followed by ordinary auxiliaries in native order. |
glyph_lookup |
function | (self, font_id, key, *, unicode=False) |
Consult FontGate's authoritative name/Unicode hash maps. |
glyph_note |
function | (self, glyph_id: str) -> str |
|
glyph_selected |
function | (self, font_id, glyph_id) |
|
glyph_tags |
function | (self, glyph_id: str) -> tuple[str, ...] |
|
glyphs |
function | (self, font_id: str) -> tuple[GlyphInfo, ...] |
|
guide_selected |
function | (self, guide_id) |
|
hints |
function | (self, layer_id: str) -> tuple[HintInfo, ...] |
|
insert_path |
function | (self, layer_id: str, index: int, path: PathInfo) -> str |
A new one-contour shape before the shape that holds the entry at <code>index</code> of the layer's shape order (path and component ids); a negative or past-the-end index appends. |
insert_path_node |
function | (self, path_id: str, index: int, node: NodeInfo, *, on_attach: Callable[[str], None] | None=None) -> str |
Insert one native node without retiring retained handles. |
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, ...] |
|
kerning_revision |
function | (self, font_id) |
Observe native kerning Undo without invalidating geometry snapshots. |
kerning_write_revision |
function | (self, font_id, master_ids, containers=None) |
Validate every master in a writer snapshot using retained live handles. |
layer |
function | (self, glyph_id: str, master_id: str) -> LayerInfo |
|
layer_bounds |
function | (self, layer_id: str) |
|
layer_location |
function | (self, layer_id) |
|
layer_metrics_key |
function | (self, layer_id, side) |
|
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 |
Glyphs' <code>makeNodeFirst</code>: the node becomes the contour's start node. |
mark |
function | (self, id: str) -> int |
|
master_guides |
function | (self, master_id) |
|
master_metrics |
function | (self, master_id: str) -> MasterMetrics |
<code>fontlab.FontMetrics(package, master)</code> gives the vertical metrics of any master. |
master_zones |
function | (self, master_id) |
|
node_name |
function | (self, node_id) |
|
node_selected |
function | (self, node_id) |
|
open_edit_view |
function | (self, font_id: str) -> None |
Open a literal empty tab, as Glyphs' addTabWithDisplayString_("") does. |
outline_layer |
function | (self, layer_id: str) -> LayerInfo |
Snapshot a master, auxiliary or background layer using existing readers. |
path_attributes |
function | (self, path_id) |
|
path_grouping |
function | (self, layer_id) |
Remember contour counts, without retaining history-owned shapes. |
prepare_collection |
function | (self, layer_id, field, *, state=None) |
Stage detached geometry, checkpoint originals, then attach clones. |
proxy_parent |
function | (self, token) |
Current logical parent, already reconciled by proxy validation. |
redraw_edit_view |
function | (self, font_id) |
|
remove_anchor |
function | (self, layer_id: str, anchor_id: str) -> None |
|
remove_axis |
function | (self, font_id: str, index: int) -> None |
Native fact (probe-axes-instances-run1): flPackage has no removeAxis; assigning the axes list without the axis removes it. |
remove_component |
function | (self, layer_id, component_id) |
|
remove_glyph |
function | (self, font_id, glyph_id) |
|
remove_guide |
function | (self, layer_id, guide_id) |
|
remove_hint |
function | (self, layer_id: str, index: int) -> None |
|
remove_instance |
function | (self, font_id: str, index: int) -> 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, glyph_id, name) |
|
replace_kerning |
function | (self, font_id: str, master_id: str, pairs: tuple[KerningPair, ...]) -> None |
|
restore_collection |
function | (self, layer_id, state) |
|
restore_path_grouping |
function | (self, layer_id, groups) |
Combine newly constructed identity-transform paths into old groups. |
revision |
function | (self, font_id) |
|
save_font |
function | (self, font_id: str, path: str | None=None, *, make_copy=False) -> None |
Save a registered document by native font ID, verifying the output file. |
set_anchor_name |
function | (self, anchor_id, name) |
|
set_anchor_position |
function | (self, anchor_id: str, x: float, y: float) -> None |
|
set_anchor_selected |
function | (self, anchor_id, value) |
|
set_axis |
function | (self, font_id: str, index: int, axis: AxisInfo) -> None |
|
set_class |
function | (self, font_id: str, name: str, glyphs) -> None |
Native fact (glyport-r020/probe-font-writes-run3): fgGroups has no item assignment; fromDict(all groups plus the new one) adds a class and leaves FontLab's per-master kerning classes untouched;… |
set_component_name |
function | (self, component_id: str, name: str) -> None |
|
set_component_position |
function | (self, component_id, x, y) |
|
set_component_selected |
function | (self, component_id, value) |
|
set_component_transform |
function | (self, component_id, transform) |
|
set_current_master |
function | (self, font_id: str, master_id: str) -> None |
|
set_edit_cursor |
function | (self, font_id: str, index: int) -> None |
FlTextBlock.setActiveGlyph(flGlyphInfo) (probe_text_cursor.json): the glyph at <code>index</code>, else the nearest glyph before it. |
set_edit_glyphs |
function | (self, font_id: str, lines) -> None |
Replace the active glyph tab's text (requestContent, probe_glyph_tab.json). |
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, **changes) |
|
set_font_selection |
function | (self, font_id, glyph_ids) |
Select through the documented existing TypeRig scalar API. |
set_glyph_selected |
function | (self, font_id, glyph_id, value) |
|
set_glyph_tags |
function | (self, glyph_id: str, tags: tuple[str, ...]) -> None |
FlGlyph.tags is assigned as a whole list; setTag raises (native probe glyport-matrix/probe_glyph_tags.json). |
set_glyph_unicodes |
function | (self, glyph_id, values) |
|
set_guide |
function | (self, guide_id, **changes) |
|
set_guide_selected |
function | (self, guide_id, value) |
|
set_hint |
function | (self, layer_id: str, index: int, changes: dict) -> None |
Patch only the given fields: FontLab rejects geometry on linked or expression-driven hints, while a name-only edit is accepted. |
set_instance |
function | (self, font_id: str, index: int, changes: dict) -> None |
|
set_kerning |
function | (self, font_id, master_id, left, right, value) -> None |
Through FontLab's own kerning tools, which record their own Undo step. |
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, side, value) |
|
set_layer_width |
function | (self, layer_id: str, width: float) -> None |
|
set_lib |
function | (self, id: str, data: dict) -> None |
Assign the whole lib, read it back, and revert if anything was lost. |
set_mark |
function | (self, id: str, hue: int) -> None |
FlGlyph.mark / flLayer.mark: a hue, 0 = no mark (TypeRig's fontMarkColors use the same scale). |
set_master_axes |
function | (self, master_id: str, axes) -> None |
Native fact (glyport-r020/probe-locations-run1): flLocation(dict) takes axis names or short names; FontLab's own setLocation uses short names. |
set_master_info |
function | (self, master_id, **changes) |
|
set_master_italic_angle |
function | (self, master_id, value) |
|
set_master_zone |
function | (self, master_id, index, position, size) |
|
set_node_connection |
function | (self, node_id: str, connection: int) -> None |
|
set_node_name |
function | (self, node_id, name) |
|
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, kind) |
|
set_path_attributes |
function | (self, path_id, values) |
|
set_path_nodes |
function | (self, path_id: str, nodes, closed: bool) -> None |
<code>flContour.assign(list(flNode))</code> keeps the contour (and its shape position); points are mapped into the shape's local coordinates. |
snapshot_collection |
function | (self, layer_id, *, stage=False) |
Capture rollback bindings and stage clones without touching the layer. |
snapshot_layer |
function | (self, layer_id) |
|
stage_collection |
function | (self, layer_id, field, infos) |
Construct detached input values before removing any live members. |
supports_anchor_selection |
attribute | ||
supports_component_selection |
attribute | (shared captured text) | |
supports_guide_selection |
attribute | ||
transform_layer |
function | (self, layer_id: str, matrix) -> None |
|
update_layer_metrics |
function | (self, layer_id) |
|
validate_collection |
function | (self, layer_id, field, infos) |
|
validate_component_expansion |
function | (self, layer_id, components) -> None |
Check native reference layers before the first component is detached. |
volatile_collections |
attribute | Use on the UI thread; raw packages must be workspace-registered. |