fontlabapp.fontui.core_pythonqt_labs.profiles.calendar_proof
calendar_proof
What: Create a monthly numeral proof for the current font.
How: Read Unicode assignments. Build a Monday-first calendar and report missing ASCII digits and the space separator. The HTML preview uses a reference font.
Why: Glyph names do not identify Unicode coverage reliably.
Usage: Set year and month. Select Build, then Copy. Paste into FontLab Metrics to proof the actual font. Export New saves a complete UTF-8 HTML document.
Benefit: Check date spacing with realistic numeral sequences.
Setup: FontLab 9, Python 3.11, Fly and fontlabapp. Panels stay open beside the font. Export uses a new absolute path and never overwrites an existing file.
Idea from the Qt/PyQt examples (Riverbank Computing, Nokia, 2010-2013). Independent rewrite. Apache-2.0.
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 |
|---|---|---|---|
TITLE |
attribute | ||
calendar_proof |
function | (year: int, month: int, codes: frozenset[int]) -> tuple[str, str] |
Return calendar text and complete HTML with numeral and space coverage. |
capture_codes |
function | () -> frozenset[int] |
Read Unicode coverage from the snapshot's Unicode column, not glyph names. |
check_text |
function | (text: str) -> str |
Reject character classes that can change in a Qt plain-text document. |
export_new |
function | (filename: str, text: str) -> None |
Export UTF-8 to a new absolute path. |
main |
function | () -> None |
Open through Fly. |
read_editor_exact |
function | (editor: Any, gui: Any) -> str |
Check an export in a detached editor so draft text and Undo stay intact. |
set_plain_exact |
function | (editor: Any, text: str) -> None |
Set checked text and verify the result. |
show |
function | (qt: Any, parent: Any, *, embedded: bool=False) -> Any |
Build one modeless tool; retain every exact connection until safe close. |