Skip to content

fontlabapp.masters.text.proof · declarations 001

Back to fontlabapp.masters.text.proof

fresh

fresh(native: Any, workspace: Any, opening: Opening, source: Any, symbols: Any, identities: tuple, expected: tuple, previous_ids: set, check: Callable, cleanup: Callable, deadline: float) -> None

Preserve the existing fresh-only guard, re-fencing layers after creation.

open_proof

open_proof(opening: Opening, comparison: Comparison, *, deadline: float, cancelled: Callable = lambda: False) -> None

Open one NEW proof; no source/master selection, history or preference writes.

All registered shapes are snapshotted, including another font's old rendered view. No set_active_font/setMaster operation is used. The new active proof is the intended UI change; cleanup context_pending=False restores shapes without reactivating the prior view. Source/master is rechecked after send. Half a second is reserved for cleanup; a failed cleanup retains native handles in the existing shared PENDING fence and refuses subsequent proof requests. Synchronous getters/setters are nonpreemptible; check on return.

signature

signature(symbols: Any, check: Callable) -> tuple

Read every occurrence's exact glyph/layer and delimiter Unicode scalar.

stage

stage(native: Any, opening: Opening, source: Any, comparison: Comparison, check: Callable) -> tuple

Allocate every exact symbol and snapshot per-occurrence native layer IDs.

verify_content

verify_content(symbols: Any, expected: tuple, check: Callable) -> None

Detect missing/repeated/reordered glyphs AND missing trailing delimiters.