Skip to content

deps: go-opentype/opentype v0.21.1, which moves nothing on the page - #776

Merged
tannevaled merged 1 commit into
mainfrom
opentype-v0.21.1
Nov 13, 2026
Merged

tannevaled merged 1 commit into
mainfrom
opentype-v0.21.1

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

deps: go-opentype/opentype v0.21.1, which moves nothing on the page

Found by the bibliography pass on #754: that audit read opentype v0.20.0 and
the library is at v0.21.1.

  • v0.21.0 adds GlyphMaskIndexAt, a glyph mask at a fractional pen position
  • v0.21.1 decodes and flattens each glyph outline once and bounds the caches

Neither touches shaping, so neither bears on that audit's finding F.

⛔ A perf change that touches glyph outlines has to be shown not to move the metrics

So it was:

check result
the five box widths measured against tectonic in the same pass unchanged — Waffle 27.22002, AV 13.89001, office 22.21, To 11.39001, Affliction 40.28
a rendered page, before and after byte-identical (cmp exits 0 on the accented paragraph of #774)
gotex-worddiff on the two PDFs 0 words either way

⚠ No benchmark. The 1-minute load average is 11, where times are not exact.
The claim made here is that the output does not move — a comparison of bytes,
which holds under any load — not that the perf gain was measured.

Refs #754, #774 — the first the audit this came from, the second the merged
PR whose accented paragraph is the page compared byte for byte above.

🤖 Generated with Claude Code

Found by the bibliography pass on #754: the audit read opentype v0.20.0 and
the library is at v0.21.1. v0.21.0 adds GlyphMaskIndexAt (a glyph mask at a
fractional pen position); v0.21.1 decodes and flattens each glyph outline once
and bounds the caches. Neither touches shaping, so neither bears on that
audit's finding F.

⛔ A PERF CHANGE THAT TOUCHES GLYPH OUTLINES HAS TO BE SHOWN NOT TO MOVE THE
METRICS, so it was:

 - the five box widths measured against tectonic in the same pass are
   unchanged: Waffle 27.22002, AV 13.89001, office 22.21, To 11.39001,
   Affliction 40.28
 - a rendered page is BYTE-IDENTICAL between the two versions (the accented
   paragraph of #774, cmp exits 0, and gotex-worddiff reports 0 words either
   way)

⚠ No benchmark: the 1-minute load average is 11, where times are not exact.
The claim here is that output does not move, which is a comparison of bytes
and holds under any load — not that the perf gain was measured.

Refs #754.

Co-Authored-By: Claude Opus 5 <[email protected]>
@tannevaled
tannevaled merged commit e6f0fe3 into main Nov 13, 2026
17 of 18 checks passed
@tannevaled
tannevaled deleted the opentype-v0.21.1 branch November 13, 2026 16:15
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.

1 participant