Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump resvg from 0.41.0 to 0.42.0 #36

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 4, 2024

Bumps resvg from 0.41.0 to 0.42.0.

Release notes

Sourced from resvg's releases.

v0.42.0

  • viewsvg is a simple application that showcases resvg capabilities
  • resvg-0.*.0.tar.xz is a sources archive with vendored Rust dependencies
  • resvg-explorer-extension.exe is an SVG thumbnailer for Windows Explorer
Changelog

Sourced from resvg's changelog.

[0.42.0] - 2024-06-01

Added

  • resvg can render color fonts now, aka Emojis. In TrueType terms, COLRv0, COLRv1 (mostly), sbix, CBDT and SVG tables are supported. Thanks to @​LaurenzV.
  • Fonts matching and fallback can be controlled by the caller via usvg::FontResolver now. Thanks to @​LaurenzV.
  • usvg::Options::font_resolver. Similar to usvg::Options::image_href_resolver we already had.
  • usvg::Options::fontdb
  • Support double-quoted FuncIRIs, aka url("#id").
  • image element viewbox flattening. Instead of having usvg::Image::view_box that the caller should handle themselves, we instead replace it with transform and optional clip-path. This greatly simplifies image rendering.
  • usvg::Image::size
  • Tree viewbox flattening. Similar to image above, but affects the root svg element instead.
  • pattern viewbox flattening. Similar to image above, but for patterns.
  • Improve vertical text rendering. Thanks to @​LaurenzV.

Changed

  • usvg::fontdb::Database should be set in usvg::Options and not passed to the parser separately now.
  • usvg::Options and usvg::ImageHrefResolver have a lifetime now.
  • Replace usvg::Visibility enum with just bool.
  • usvg::Path::visibility() is replaced with usvg::Path::is_visible()
  • usvg::Image::visibility() is replaced with usvg::Image::is_visible()
  • usvg::TextSpan::visibility() is replaced with usvg::TextSpan::is_visible()
  • Always represent feImage content as a link to an element. In SVG, feImage can contain a link to an element or a base64 image data, just like image. From now, the inlined base64 data will always be represented by a link to an actual image element.
    <filter>
      <feImage xlink:href="data:image/png;base64,..."/>
    </filter>
    will be parsed as
    <image id="image1" xlink:href="data:image/png;base64,..."/>
    <filter>
      <feImage xlink:href="#image1"/>
    </filter>
    This simplifies feImage rendering, since we don't have to handle both cases now.
  • The --list-fonts resvg argument can be used without providing an SVG file now. Can simply call resvg --list-fonts now.
  • The --list-fonts resvg argument includes generic font family names as well now.
  • Make sure all warning and errors are printed to stderr.

... (truncated)

Commits
  • b1d06e9 Bump dependencies.
  • 1653e42 Version bump.
  • 90852a6 Replace Visibility enum with just bool.
  • 80011fa Update changelog.
  • 0b33ace Support user-provided font loading callbacks (#769)
  • ac7e7d0 Simplify nested svg parsing a bit.
  • d88ad59 The --list-fonts resvg argument can be used without providing an SVG file now.
  • 4b4e897 Add best-effort support for COLRv1.
  • 4daa53a Update svgtypes to allow double quoted FuncIRIs.
  • 800a998 Fix dead code warning.
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR 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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [resvg](https://github.com/RazrFalcon/resvg) from 0.41.0 to 0.42.0.
- [Release notes](https://github.com/RazrFalcon/resvg/releases)
- [Changelog](https://github.com/RazrFalcon/resvg/blob/master/CHANGELOG.md)
- [Commits](linebender/resvg@v0.41.0...v0.42.0)

---
updated-dependencies:
- dependency-name: resvg
  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 rust Pull requests that update Rust code labels Jun 4, 2024
Update lib.rs
@baseplate-admin baseplate-admin force-pushed the dependabot/cargo/resvg-0.42.0 branch from f80a644 to 685afea Compare June 17, 2024 15:40
@baseplate-admin baseplate-admin marked this pull request as draft August 1, 2024 05:04
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 1, 2024

A newer version of resvg exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@baseplate-admin baseplate-admin force-pushed the dependabot/cargo/resvg-0.42.0 branch from f746034 to 191c6c3 Compare December 12, 2024 12:28
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 rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant