fontlabapp.glyphs.identity_tools.character_consistency.style_linker
style_linker
Preview style linking for the exportable instances of the current font.
What: Link whole-word Bold, Italic and Oblique styles to an available base. Width groups remain separate. ExtraBold and SemiBold are not Bold. How: A non-modal table previews FontLab style-group names and link flags. Apply obtains fresh instance values and changes only matching rows. The package owns instance values; assign the complete instance list back. Notifications follow FontLab Font Info: package and masters container before assignment, then the same list after assignment. Why: FontLab uses a style-group name and bold/italic flags instead of Glyphs linkStyle. Native autoSLV/autoSGN and the Instances multi-select controls already set these values. This tool adds whole-word base matching across width groups in one preview. Per-instance family names (tfn) can differ from the font family and are not exposed by the Python instance API. Therefore an automatic base group is kept: set that base group explicitly in Font Info first. Only explicit base groups are copied. Instance family names and other hidden properties stay in the native value objects. Use: Open a font with instances. Run this tool, check the table, then Apply. Refresh reads the current font again. Close releases owned signals. Benefit: Preview regular/bold/italic relationships across the complete family. Credit: Giuseppe Salerno / Resistenza Type, StyleLinker.py, https://github.com/rsztype/Scripts, Apache-2.0. Independent behaviour-only rewrite. No source code was copied.
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 |
|---|---|---|---|
KEY |
attribute | ||
TITLE |
attribute | ||
apply_links |
function | (package_id: int, expected: tuple[Any, ...], plan: list[tuple[int, str, int]], *, report: list[str] | None=No… |
Check the preview and use the Font Info notification list and order. |
instance_state |
function | (values: list[Any]) -> tuple[Any, ...] |
Snapshot naming, flags, export state and visible weight information. |
link_plan |
function | (values: list[Any]) -> list[tuple[int, str, int]] |
Return only links whose base has an explicit export style group. |
link_rows |
function | (values: list[Any]) -> list[tuple[int, str, int, str]] |
List every exportable style, including missing style text and kept rows. |
main |
function | () -> Any |
Open one owned Style Linker panel. |
panel_type |
function | () -> type |
Build the non-modal preview with the shared owned-signal shell. |