fontlabapp.studios.proof_studio.generators.saved_sample
saved_sample
Saved sample: one reusable proof string, kept across launches and checked against the font.
What: absorbs Examples "Saved Proof Sample" (the author's own Apache-2.0
sample). Same storage: QSettings ("FontLabPythonExamples",
"SavedProofSample"), fallbacks off, the one key proof/sample, default
"Hamburgefontsiv". Save is explicit (Save sample); Reset saved sample
removes only that key. Check coverage captures the whole current font
(glyphs.catalog with a min(120, 10 + 0.02 × glyphs) second budget) and
reports covered and missing Unicode scalars as the same JSON. Text with NUL,
NBSP, U+2028/U+2029 or lone surrogates is refused, as the original.
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 |
|---|---|---|---|
DEFAULT |
attribute | (shared captured text) | |
GENERATOR |
attribute | ||
KEY |
attribute | ||
SETTINGS |
attribute | ||
UNUSABLE |
attribute | ||
check_coverage |
function | (context: Context, *, clock: Any=monotonic) -> Outcome |
A fresh, complete capture of the current font, then the JSON coverage report. |
checked |
function | (text: str) -> str |
Apply the original exact-transfer policy. |
coverage_report |
function | (sample: str, rows: tuple[tuple[str, str, str], ...]) -> str |
Compare literal proof scalars with all Unicode assignments; the original JSON. |
load |
function | (settings: Any) -> Outcome |
The stored sample, or the default with the original notice when it is unusable. |
make |
function | (_choice: str, options: Options) -> Proof |
The sample as one part (refused when it cannot pass intact). |
persist |
function | (settings: Any, sample: str | None) -> None |
Save or remove only the owned key; confirm the QSettings sync status. |
reset_sample |
function | (context: Context) -> Outcome |
|
save_sample |
function | (context: Context) -> Outcome |