fontlab_fontport.groups · declarations 001
Back to fontlab_fontport.groups
PREFIXES
module-attribute
PREFIXES
edit_groups
edit_groups(groups: Mapping[str, Any], action: str, name: str, *, new_name: str = '', members: list[str] | tuple[str, ...] = (), available_glyphs: Any = ()) -> dict[str, tuple[str, ...]]
Stage one B06 action; member insertion deduplicates and requires glyphs.
No native mutation occurs. Destructive dependent-pair policy is checked by the backend when this complete mapping is applied. Deleting a conflicting imported group can repair an existing per-side membership overlap.
stage_groups
stage_groups(values: Mapping[str, Any]) -> dict[str, tuple[str, ...]]
Detach a complete mapping; enforce UFO per-side kerning membership rules.
Plain groups retain duplicate and absent glyph names, as FontParts permits. An editor can require known glyphs before calling this model boundary.