Skip to content

fontlabapp.metrics.panel.ui.MetricsPanel · declarations 001

Back to fontlabapp.metrics.panel.ui.MetricsPanel

ACCENT class-attribute instance-attribute

ACCENT: tuple[int, ...]

MIN_WIDTH class-attribute instance-attribute

MIN_WIDTH

__init__

__init__(parent: Any = None) -> None

Build all widgets first. Read the font only after the Close button exists.

apply

apply() -> None

Plan and scan again from the live font, then write. One Undo step.

build

build() -> None

Create the controls. Add them to self.form from row 1 on; row 0 holds the masters.

chosen_masters

chosen_masters(package: Any) -> list[str]

Return the captured master, or all masters requested by the control.

closeEvent

closeEvent(event: Any) -> None

Disconnect owned signals. Then delete the panel.

empty_message

empty_message() -> str

Return the reason shown when no glyph qualifies.

fill_table

fill_table() -> None

Show the plan. ACCENT columns use the bold link colour.

font_package

font_package() -> Any

Return the bound font. Refuse a closed or switched font (ValueError).

make_entries

make_entries() -> list[Entry]

Plan all target layers from the live font.

overridden

overridden(entries: list[Entry]) -> bool

Return True when the tick belongs to exactly these changed glyphs.

override_toggled

override_toggled() -> None

Bind a tick to the glyphs that change now. Another set needs a new tick.

planner

planner(package: Any, glyphs: list[Any]) -> Planner

Return the function that plans one layer for the current settings.

rebuild_note_for

rebuild_note_for(todo: list[Entry]) -> str

Return the rebuild warning for todo. Cache it per set of glyph names.

refresh

refresh() -> None

Recompute the preview. Any refusal disables Apply and shows its reason.

refresh_target

refresh_target() -> None

Reload dependency facts and the plan without replacing captured targets or settings.

refusal

refusal(note: str) -> str

Return the text that says why a base of auto glyphs is not edited.

reselect

reselect() -> None

Take the glyph selection from the Font window again.

rows

rows() -> list[Entry]

Return the entries that get a table row: edits and explained skips, not no-ops.

spin

spin(low: int, high: int, value: int, suffix: str = '') -> Any

Return a right-aligned integer spin box that refreshes the preview.

subtitle_hint

subtitle_hint() -> str

Return one sentence that says what the current settings will do.

sync_controls

sync_controls() -> None

Enable or disable controls to match the other controls. Default: nothing.

target_glyphs

target_glyphs(package: Any) -> list[Any]

Return the glyphs to edit. The default is the captured selection.

watch

watch(signal: Any) -> None

Refresh the preview whenever signal fires (guarded slot).