Skip to content

fontlabapp.studios.proof_studio.generators.random_proofs

random_proofs

Random proofs: the seven Scriptmix "Random …" scripts as one seeded generator.

What: make runs fontlabapp.proof.random.generate(mode) (Pedro Arilla's Apache-2.0 random proofs; see NOTICE), with random.Random(seed) when a seed is given and the module RNG (unseeded, as the scripts) otherwise. open repeats the script: refuse with no font, draw, open one new tab. open_current opens the previewed draw in one new tab instead. Pure apart from the lazy backend import; no Qt, no host, no writes.

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
GENERATOR attribute
NO_FONT attribute
make function (mode: str, options: Options) -> Proof One part: the complete random proof for <code>mode</code><code> (seeded when </code><code>options.seed</code> is set).
open_current function (mode: str, context: Context) -> None Open the previewed draw in one new tab bound to the current font.
open_tab function (mode: str) -> None The absorbed script: refuse with no font before drawing, then one fresh draw in a new tab.