fontlabapp.anchors.panel.ui.AnchorPanel · declarations 001
Back to fontlabapp.anchors.panel.ui.AnchorPanel
HEADERS
class-attribute
instance-attribute
HEADERS: tuple[str, ...]
KEY
class-attribute
instance-attribute
KEY
TITLE
class-attribute
instance-attribute
TITLE
WIDTH
class-attribute
instance-attribute
WIDTH
__init__
__init__(parent: Any = None) -> None
Build every widget, then scan the font. A scan failure shows in the status.
apply
apply() -> None
Plan again from live data, check safety again and write once.
Refuse ("Reload selection") when the font, the current master or a glyph changed since the scan. The status then says what changed.
build
build() -> None
Create every widget before any font data is read.
build_controls
build_controls() -> None
Subclass hook: add widgets to self.form and self.watch() their signals.
cells
cells(label: str, change: Change) -> list[str]
Return the row texts: 3 columns (glyph, anchor, result) or 4 (with current).
chosen_masters
chosen_masters() -> list[str]
Return the masters to plan. Default: all masters of the font.
closeEvent
closeEvent(event: Any) -> None
Stop the timers, disconnect every signal, unregister and delete the panel.
fill
fill(plan: Plan) -> None
Show the first MAX_ROWS rows of the plan.
The last cell is ERROR_COLOR for a blocked row, the link colour
for a change, and the muted colour for a note (a skipped auto layer).
glyph_names
glyph_names() -> list[str]
Return the glyphs to work on: the Font window selection, or the current glyph.
intro
intro() -> str
Return the subtitle: the glyph names, or what is missing.
on_reload
on_reload() -> None
Subclass hook: refresh control contents that depend on the font.
planner
planner() -> Planner
Subclass hook: return the per-layer planner. Raise ValueError on bad input.
read_font
read_font() -> None
Bind to the current font, its masters and its current master.
refresh
refresh() -> None
Plan again, fill the table and enable Apply only when the plan is safe.
relabel
relabel() -> None
Keep the scope combo texts in step with the font and its masters.
reload
reload() -> None
Scan again. A failure shows "Error: ..." in the status and blocks Apply.
scan
scan() -> None
Read the font, the selection and the auto-composite facts again.
scope_box
scope_box() -> Any
Return a combo box: 0 is the current master, 1 is all masters.
spin
spin(low: int, high: int, value: int, suffix: str = '') -> Any
Return a right-aligned integer QSpinBox with readable text.
watch
watch(signal: Any, callback: Callable[..., Any] | None = None) -> None
Connect signal through the guard; the default callback is refresh.
An exception in a PythonQt slot can exit FontLab, so the guard shows it in the status line instead. The slot drops the signal arguments.