Skip to content

fontlabapp.fontui.teaching_text.diff

diff

What: Compare the first captured glyph catalogue with the newest capture. How: Bind both snapshots to the current font package. Match glyph names and compare complete Unicode sets plus modification dates and epoch milliseconds. Report added, removed, re-encoded and modified glyphs in separate change rows. Why: A focused difference is easier to review than two complete inventories. Usage: Run to capture the baseline. Make changes in FontLab, then Capture Latest. The first capture stays fixed. Reset Baseline explicitly starts a new comparison, including after switching fonts. Previous and Next page the display; Copy All Diff copies the complete comparison. Renames appear as a removed and an added glyph. A glyph can be both re-encoded and modified. Unicode order alone is not a change. Benefit: Review the actual effects of a script or manual edit, with every changed Unicode and modification value retained. This tool changes no font data. Setup: FontLab 9, Python 3.11, Fly and App with glyph_catalog, scripting, draft_signals. The modeless window contains one reusable table. Independent rewrite of the Qt mdi example idea (Qt/Nokia, Riverbank). Based on the author's own FontLab sample, Apache-2.0. No upstream code or assets copied.

Historical source: rescued/part3/pyqt-official-ports/ports/mainwindows/pyqt-official/mdi-1415facde30a25cf.py SHA256: 29271121483f2c5fabe6b0f0232602bcc32f9d0a0ccc69ad553149a5706d8199 Historical source: rescued/part2/ports/mainwindows/pyqt-official/mdi-1415facde30a25cf.py SHA256: 4a7cab42d4c0c13dd09e5c098e6758007f81371fbb90b832d25c1f44e055609c

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
Changes attribute
PAGE_SIZE attribute (shared captured text)
Rows attribute (shared captured text)
Snapshot attribute
TITLE attribute
build function (parent: Any=None) -> Any Build the original controls as a hidden child for an owned lab tab. (shared captured text)
checked function (text: str) -> str Refuse characters that Qt may change or that can split table fields. (shared captured text)
codes function (field: str) -> tuple[int, ...] Parse the public catalogue's U+ tokens into distinct Unicode scalars. (shared captured text)
date_text function (record: tuple[tuple[int, ...], str, int | None]) -> str Show subsecond changes that the catalogue's formatted date cannot show.
diff_rows function (first: Snapshot, newest: Snapshot) -> Changes Compare names, Unicode sets and exact modification values to the baseline.
diff_text function (rows: Changes) -> str Copy the full baseline diff for a FontLab change-review handoff.
main function () -> Any Use FontLab's existing application and report expected setup refusals.
show function (qt: Any, parent: Any, capture: Callable[[], Any] | None=None, *, embedded: bool=False) -> Any Open a modeless first-to-latest comparison of one current font.
snapshot function (table: Any) -> Snapshot Detach one complete catalogue, retaining epoch precision when available.
unicode_text function (values: tuple[int, ...]) -> str Format all code points, including non-BMP values, without Qt conversion. (shared captured text)