fontlab_glyport.model.fontlab_backend.FontLabBackend · declarations 003
Back to fontlab_glyport.model.fontlab_backend.FontLabBackend
rename_class
rename_class(font_id: str, name: str, new_name: str) -> None
rename_glyph
rename_glyph(font_id, glyph_id, name)
replace_kerning
replace_kerning(font_id: str, master_id: str, pairs: tuple[KerningPair, ...]) -> None
restore_collection
restore_collection(layer_id, state)
restore_path_grouping
restore_path_grouping(layer_id, groups)
Combine newly constructed identity-transform paths into old groups.
Components and baseline shapes are never mutated. If the replacement has fewer paths, preserve the groups that still fit; surplus paths form one new group.
revision
revision(font_id)
save_font
save_font(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
set_anchor_name(anchor_id, name)
set_anchor_position
set_anchor_position(anchor_id: str, x: float, y: float) -> None
set_anchor_selected
set_anchor_selected(anchor_id, value)
set_class
set_class(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; remove(name) deletes it.
set_component_name
set_component_name(component_id: str, name: str) -> None
set_component_position
set_component_position(component_id, x, y)
set_component_selected
set_component_selected(component_id, value)
set_component_transform
set_component_transform(component_id, transform)
set_current_master
set_current_master(font_id: str, master_id: str) -> None
set_edit_cursor
set_edit_cursor(font_id: str, index: int) -> None
flTextBlock.setActiveGlyph(flGlyphInfo) (probe_text_cursor.json):
the glyph at index, else the nearest glyph before it.
set_edit_glyphs
set_edit_glyphs(font_id: str, lines) -> None
Replace the active glyph tab's text (requestContent, probe_glyph_tab.json).
Native facts (probe_tab_text.json): FontLab's string parser drops
unencoded "/name" tokens, so names go in as fgSymbol objects; only the
string form "
" makes a line break; fgSymbolList() without an argument cannot be built.
set_feature
set_feature(font_id: str, name: str, code: str | None) -> None
set_feature_prefix
set_feature_prefix(font_id: str, code: str) -> None
set_font_info
set_font_info(font_id, **changes)
set_font_selection
set_font_selection(font_id, glyph_ids)
Select through the documented existing TypeRig scalar API.
Restrict to this font's Font Window so legacy selection never changes an unrelated font or an editor tab. Empty input clears selection.
set_glyph_selected
set_glyph_selected(font_id, glyph_id, value)
set_glyph_tags
set_glyph_tags(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
set_glyph_unicodes(glyph_id, values)
set_guide
set_guide(guide_id, **changes)
set_guide_selected
set_guide_selected(guide_id, value)
set_hint
set_hint(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
set_instance(font_id: str, index: int, changes: dict) -> None
set_kerning
set_kerning(font_id, master_id, left, right, value) -> None
Through FontLab's own kerning tools, which record their own Undo step.
set_kerning_group
set_kerning_group(font_id: str, glyph_id: str, side: str, value: str | None) -> None
set_layer_metrics_key
set_layer_metrics_key(layer_id, side, value)
set_layer_width
set_layer_width(layer_id: str, width: float) -> None
set_lib
set_lib(id: str, data: dict) -> None
Assign the whole lib, read it back, and revert if anything was lost.
set_mark
set_mark(id: str, hue: int) -> None
flGlyph.mark / flLayer.mark: a hue, 0 = no mark (TypeRig's fontMarkColors use the same scale).
set_master_axes
set_master_axes(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
set_master_info(master_id, **changes)
set_master_italic_angle
set_master_italic_angle(master_id, value)
set_master_zone
set_master_zone(master_id, index, position, size)