fontlabapp.fontui.teaching_text.paths
paths
What: Report contour problems on the current font's current master. How: Inspect each glyph's contours once. List open contours, closed contours with fewer than three on-curve nodes, equal adjacent nodes and small node extents. Why: A combined report gives one repair checklist before overlap removal. Usage: Open a font. Set the minimum extent, then Refresh. Enter an absolute new JSON filename and Export to save the complete captured checklist. Benefit: A build check or another FontLab script can consume the JSON file.
Small extents use node coordinates, including control points, in shape space. They are a diagnostic heuristic, not exact curve bounds. The report does not flatten components. Missing master layers are listed separately. No font data changes. Use Select glyphs with findings after activating the Font window. Scriptmix Reports > Open Contours is the master-wide variant that selects glyphs. This tool adds a combined checklist and complete JSON export for build checks. Scanning runs in small UI-thread steps; Cancel discards the entire unfinished report. Font, master, glyph order and modification-date changes reject the scan. Setup: FontLab 9, Python 3.11, Fly and App>=0.2.150.dev0.
Based on the author's own FontLab sample, Apache-2.0. Sources: recipe.py and path_report.py (Path Problem Report).
Classes
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 |
|---|---|---|---|
GLYPHS_PER_TICK |
attribute | ||
STEP_SECONDS |
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) |
diagnose |
function | (contours: Iterable[Any], threshold: float) -> list[dict[str, Any]] |
Return one record per finding; closed seams are adjacent too. |
export_report |
function | (filename: str, report: dict[str, Any]) -> None |
Write a captured report to a new absolute path; never overwrite. |
main |
function | () -> None |
Use FontLab's existing application and main window. |
report_text |
function | (report: dict[str, Any]) -> str |
Encode the complete report as ASCII JSON for lossless Qt display. |
show |
function | (qt: Any, parent: Any, *, embedded: bool=False) -> Any |
Show a retained modeless panel with owned, guarded connections. |