Skip to content

chore(deps): Bump svglib from 2.1.0 to 2.2.0 - #15493

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/master/svglib-2.2.0
Open

chore(deps): Bump svglib from 2.1.0 to 2.2.0#15493
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/master/svglib-2.2.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 26, 2026

Copy link
Copy Markdown
Contributor

Bumps svglib from 2.1.0 to 2.2.0.

Release notes

Sourced from svglib's releases.

svglib 2.2.0

Tooling and housekeeping

  • Modernized type annotations across src/svglib/ and tests/ to use PEP 585 builtin generics (list[...], dict[...], tuple[...], set[...]) instead of typing.List/Dict/Tuple/Set, and simplified a few emptiness/membership checks (not points instead of len(points) == 0, a set literal instead of a list for in checks). No behavior change.
  • Silenced a UserWarning from test_convert_pdf_png that came from ReportLab's own renderPM.drawImage, not from svglib: it reopens a <image> file referenced by path and converts it straight to RGB without normalizing palette-with-transparency PNGs first, unlike svglib's own handling of base64-embedded images. The referenced PNG (a dedicated tRNS-chunk test fixture) still renders correctly; there was nothing to fix in svglib's output.

Fixed

  • font-size no longer has PX_TO_PT applied twice. The viewport group already carries the conversion, but String.fontSize and the advance widths used to position text fragments were converted to points as well. Text therefore rendered at 0.75x the size of the geometry in the same document, and multi-tspan runs were laid out in the wrong unit (issue #502). Both now stay in user units, like every other coordinate below the transform. String.fontSize in the shape tree is in user units accordingly; multiply by the enclosing group's transform to get the rendered size.
Changelog

Sourced from svglib's changelog.

2.2.0 (2026-08-14)

Tooling and housekeeping

  • Modernized type annotations across src/svglib/ and tests/ to use PEP 585 builtin generics (list[...], dict[...], tuple[...], set[...]) instead of typing.List/Dict/Tuple/Set, and simplified a few emptiness/membership checks (not points instead of len(points) == 0, a set literal instead of a list for in checks). No behavior change.
  • Silenced a UserWarning from test_convert_pdf_png that came from ReportLab's own renderPM.drawImage, not from svglib: it reopens a <image> file referenced by path and converts it straight to RGB without normalizing palette-with-transparency PNGs first, unlike svglib's own handling of base64-embedded images. The referenced PNG (a dedicated tRNS-chunk test fixture) still renders correctly; there was nothing to fix in svglib's output.

Fixed

  • font-size no longer has PX_TO_PT applied twice. The viewport group already carries the conversion, but String.fontSize and the advance widths used to position text fragments were converted to points as well. Text therefore rendered at 0.75x the size of the geometry in the same document, and multi-tspan runs were laid out in the wrong unit (issue #502). Both now stay in user units, like every other coordinate below the transform. String.fontSize in the shape tree is in user units accordingly; multiply by the enclosing group's transform to get the rendered size.
Commits
  • c5c1ed1 Merge pull request #506 from deeplook/release-2.2.0
  • 93974ac Prepare 2.2.0 release
  • 79066c5 Merge pull request #505 from deeplook/refactor/typing-modernization
  • b3d7998 test: silence UserWarning from reportlab's renderPM in test_convert_pdf_png
  • 8aa8cf1 refactor: modernize typing annotations and simplify checks
  • 024eb4a [pre-commit.ci] pre-commit autoupdate (#504)
  • 71b9e32 Merge pull request #503 from Zunhammer/fix/font-size-double-px-to-pt
  • 0ba58b5 fix: stop applying PX_TO_PT to font-size twice (#502)
  • 32df3d0 Merge pull request #501 from deeplook/pre-commit-ci-update-config
  • 995ceac [pre-commit.ci] pre-commit autoupdate
  • 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 [svglib](https://github.com/deeplook/svglib) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/deeplook/svglib/releases)
- [Changelog](https://github.com/deeplook/svglib/blob/main/CHANGELOG.md)
- [Commits](deeplook/svglib@v2.1.0...v2.2.0)

---
updated-dependencies:
- dependency-name: svglib
  dependency-version: 2.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Aug 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

馃摉 Documentation Preview

鈿狅笍 Preview deployment failed or was skipped.

No RST documentation pages changed in this PR.

Last updated: Wed, 26 Aug 2026 06:12:20 GMT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants