fontlabapp.fontui.designspace_sources
designspace_sources
Detached UFO source comparison, without Qt, interpolation or font writes.
compare(path) reads continuous-axis designspaces through Fontport's
fontTools adapter. Missing/extra glyphs are relative to the first source.
refresh(path, view.setPlainText) updates the source-comparison view only
after a complete read. Optional checkpoints bound cooperative GUI reads.
Compatibility has exactly the existing App model's structural scope: ordered
node types and anchor/component name sets, not interpolation certification.
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 |
|---|---|---|---|
METRICS |
attribute | ||
compare |
function | (path: str | Path, *, check: Callable[[], None]=lambda: None) -> Report |
Read all sources or raise; missing files/layers never yield partial success. |
refresh |
function | (path: str | Path, set_text: Callable[[str], Any], *, check: Callable[[], None]=lambda: None) -> Report |
Thin view hook: callback exceptions propagate; no widget is owned here. |
render |
function | (report: Report, *, check: Callable[[], None]=lambda: None) -> str |
Render a plain-text metrics table and per-glyph diagnostic summary. |