fontlabapp.metrics.tabular_width.model · declarations 001
Back to fontlabapp.metrics.tabular_width.model
capture
capture() -> WidthReport
Read actual Font/Glyph-window selected layers, preserving ordered repeats.
Read every width twice and fence final selection/document context. One2s deadline covers the whole action. Native calls cannot be preempted; Python checkpoints diagnose overruns. The first actual occurrence is the reference; no CurrentGlyph fallback, sorting, deduplication or partial result is used. Native preservation/order/focus qualification remains pending.
compare
compare(values: tuple[tuple[str, float], ...], time: str) -> WidthReport
Compare every selected layer against the first, without rounding.
render
render(report: WidthReport) -> str
Keep the original time heading, per-glyph status and result totals.
Use repr for widths rather than the original integer formatting, so a fractional difference remains visible while the comparison stays exact.