Skip to content

[WIP] Create report on byte savings - #108

Draft
wmedrano wants to merge 3 commits into
mainfrom
wm-report
Draft

wmedrano wants to merge 3 commits into
mainfrom
wm-report

Conversation

@wmedrano

@wmedrano wmedrano commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

dlweakley and others added 3 commits November 5, 2026 22:20
Adds an example that draws every glyph in one or more fonts with a
reference, baseline and candidate SvgPathStyle (default unchanged,
compact and minimized) across variable-font locations, then writes a
self-contained HTML report and JSON aggregates.

- Size: full SVG bytes per font/location, per-icon savings histogram,
  and per-option ablation of every setting that differs between the
  baseline and candidate.
- Quality: rasterizes with tiny-skia at configurable sizes and reports
  mean absolute alpha error, worst pixel, IoU and visibly changed
  pixels against the reference, plus example renders with diff
  heatmaps and a zoomed view of the biggest byte saver.

Fonts (--font), locations (--var TAG,TAG@V,V), styles and raster sizes
are configurable; it defaults to the bundled Material Symbols test font
and writes to target/pathstyle_report/.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants