fontlabapp.fontui.designspace_sources · declarations 001
Back to fontlabapp.fontui.designspace_sources
METRICS
module-attribute
METRICS
compare
compare(path: str | Path, *, check: Callable[[], None] = lambda: None) -> Report
Read all sources or raise; missing files/layers never yield partial success.
Discrete axes, anisotropic locations and multi-axis maps are refused. fontTools ignores dimensions with undefined axes when parsing the file. Metrics are raw source units, not rescaled when UPM differs. Named source layers use their own glyphs and the containing UFO's shared font info. check runs between source/glyph reads; blocking I/O cannot be preempted.
refresh
refresh(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
render(report: Report, *, check: Callable[[], None] = lambda: None) -> str
Render a plain-text metrics table and per-glyph diagnostic summary.