Skip to content

fontlabapp.fontui.batch.BatchPanel

BatchPanel

Explicit sources and destination folder; one run at a time.

Start validates every job in FontLab first (Fontport's run() is eager) and writes nothing on failure. The work then runs in a separate Python 3.11+ with fontlab-fontport (python=..., else $FONTLABAPP_BATCH_PYTHON), so it never holds FontLab's GIL; each 50 ms poll reads at most 64 KiB and records at most 64 rows from a non-blocking socket on Darwin or pipe elsewhere. Output that is not a result row stops the run visibly. Cancel stops before the next font. Close (including parent or own-widget destruction) normally hands off cleanup without waiting; at the pending-child cap, overflow cleanup can wait up to KILL_WAIT (1.0 second) for the child after killing it. batch_worker.supervise watches for exit (termination after GRACE_SECONDS, killing later; a terminated font can leave a partial destination), then attempts scratch cleanup and schedules deletion of the surviving hidden, detached panel. Outputs are named -transformed.ufo and never replace a file.

Source bases

Inherited member index

Source-proven inherited members; local declarations override these entries.

  • connect — defined by fontlabapp.fontui.lifecycle.Owned.connect

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
GRACE_SECONDS attribute
POLL_MS attribute
__init__ function (self, recipe: Callable[[], Any], parent: Any=None, on_finish: Callable[[list], None] | None=None, python: st…
cancel function (self) -> None
close function (self) -> None Resume exact panel cleanup; transfer a live run only after its ACK.
running attribute (self) -> bool
set_sources function (self, paths: list[str]) -> None
start function (self) -> bool
step function (self) -> None GUI-thread poll: record finished fonts; never waits on the child.