Skip to content

build(deps): bump github.com/go-opentype/opentype from 0.21.1 to 0.25.0 in /backend/stilus - #106

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/backend/stilus/github.com/go-opentype/opentype-0.25.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/backend/stilus/github.com/go-opentype/opentype-0.25.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 25, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/go-opentype/opentype from 0.21.1 to 0.25.0.

Release notes

Sourced from github.com/go-opentype/opentype's releases.

v0.25.0

The work of outlining a glyph is now observable, so a caller can bound a whole font deterministically (#81).

  • Face.GlyphCost(gid) (cost int, err error), and Face.GlyphOutlineCost / Face.GlyphSVGPathCost, which return the outline and its cost from one interpretation.
  • Units: charstring operators executed for CFF, CFF2 and Type 1 (subroutines and seac components included); points the glyph expands to for glyf. Units are not comparable across kinds.
  • ErrOutlineBudget: every per-glyph budget refusal now matches it with errors.Is; messages are unchanged.
  • Scale, measured: STIX Two Math's busiest glyph costs 1,267 operators and all 6,760 glyphs 166,885.

Nothing is stored on Font or Face; outlines are byte-identical to the previous main on 317,864 glyphs of 227 fonts.

v0.24.0

What's Changed

Full Changelog: go-opentype/opentype@v0.23.0...v0.24.0

v0.23.0

A font may now be untrusted input: nothing it declares is allocated before it is checked (#75).

Parse (#78)

  • Every count that sizes an allocation (cmap 2/4/6/8/10/12/13/14, CFF2 INDEX, GSUB/GPOS lookups and subtables, layout lists, MATH kern/variants/assembly, gvar, HVAR/VVAR/MVAR, fvar) is checked against the bytes present, by division, so it cannot overflow on 32-bit builds.
  • A sub-table that many offsets point at is decoded once.
  • Coverage and ClassDef tables are binary-searched in the font's bytes, as HarfBuzz does, instead of being expanded glyph by glyph. Answers are identical, including for unsorted or overlapping tables ("later record wins").
  • A per-Parse budget of 1 MiB plus 64 bytes per input byte backs these up.
  • A GPOS PairPos format 2 subtable whose two value formats are both 0 parses with no class grid instead of being refused.

Per glyph (#77)

  • A composite TrueType glyph may expand to at most 65,535 points, counted before anything is built.
  • A CFF, CFF2 or Type 1 charstring may execute at most 131,072 operators, subroutines included, and emit at most 65,536 points; seac components share one budget.
  • A simple glyph whose endPtsOfContours decreases is refused instead of panicking (found by the new FuzzGlyphContours).

Behaviour change

Fonts past any of these bounds are now refused with an error. Measured on several hundred real fonts, the largest stay 8.8 to 103 times below them, and outlines, shaping, kerning and MATH answers are unchanged on every font measured.

Also: testdata/** -text, so Windows checkouts no longer rewrite committed fuzz seeds.

v0.22.0

What's Changed

Full Changelog: go-opentype/opentype@v0.21.1...v0.22.0

Commits
  • e7edbd3 Face.GlyphCost: the work of outlining a glyph, observable (#81) (#82)
  • 8b46891 Face.GlyphControlBox: a glyph's control box, as FreeType computes it (#80)
  • 9ba2993 the README says what a hostile font can no longer do (#79)
  • 4a53b05 Bound every allocation Parse sizes from a declared count (#75, Parse half) (#78)
  • 12e5ea4 Bound what one glyph may expand to: composite point budget, Type 2 operation ...
  • 8d23600 the Scope paragraph outlived its code by five features (#73)
  • 4381c99 a pair query can say it cannot speak for this font's kerning, instead of answ...
  • ec1c0d3 fix(deps): update module github.com/andybalholm/brotli to v1.3.0 (#69)
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/go-opentype/opentype](https://github.com/go-opentype/opentype) from 0.21.1 to 0.25.0.
- [Release notes](https://github.com/go-opentype/opentype/releases)
- [Commits](go-opentype/opentype@v0.21.1...v0.25.0)

---
updated-dependencies:
- dependency-name: github.com/go-opentype/opentype
  dependency-version: 0.25.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from timzifer as a code owner November 25, 2026 17:06
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants