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

fix(deps): update rust crate usvg to 0.42 - autoclosed #630

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 4, 2024

Mend Renovate

This PR contains the following updates:

Package Type Update Change
usvg dependencies minor 0.40 -> 0.42

Release Notes

RazrFalcon/resvg (usvg)

v0.42.0

Compare Source

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.
    Thanks to @​ahaoboy.
Removed
  • usvg::ViewBox, usvg::AspectRatio, usvg::Align types. Nol longer used.
  • usvg::filter::Image::aspect. No longer needed.
  • usvg::filter::Image::rendering_mode. No longer needed.
  • usvg::filter::Image::data. Use usvg::filter::Image::root instead.
  • usvg::Tree::view_box. No longer needed.
  • usvg::Image::view_box. No longer needed.
  • usvg::Image::pattern. No longer needed.
  • usvg::utils::align_pos. No longer needed.
  • usvg::Visibility. No longer needed.
  • (c-api) resvg_get_image_viewbox. Use resvg_get_image_size instead.
Fixed

v0.41.0

Compare Source

Added
  • context-fill and context-stroke support.
    Thanks to @​LaurenzV.
  • usvg::Text::layouted(), which returns a list of glyph IDs.
    It can be used to manually draw glyphs, unlike with usvg::Text::flattened(), which returns
    just vector paths.
    Thanks to @​LaurenzV.
Fixed
  • Missing text when a text element uses multiple fonts and one of them produces ligatures.
  • Absolute transform propagation during use resolving.
  • Absolute transform propagation during nested svg resolving.
  • Node::abs_transform documentation. The current element's transform is included.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

Copy link
Contributor Author

renovate bot commented Jul 4, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path crates/components/vector/Cargo.toml --package usvg@0.40.0 --precise 0.42.0
    Updating crates.io index
error: failed to select a version for the requirement `usvg = "^0.40"`
candidate versions found which didn't match: 0.42.0
location searched: crates.io index
required by package `vello_svg v0.1.0`
    ... which satisfies dependency `vello_svg = "^0.1"` (locked to 0.1.0) of package `mizer-vector v0.1.0 (/tmp/renovate/repos/github/maxjoehnk/Mizer/crates/components/vector)`
    ... which satisfies path dependency `mizer-vector` (locked to 0.1.0) of package `mizer-ports v0.1.0 (/tmp/renovate/repos/github/maxjoehnk/Mizer/crates/runtime/pipeline/ports)`
    ... which satisfies path dependency `mizer-ports` (locked to 0.1.0) of package `mizer-node v0.1.0 (/tmp/renovate/repos/github/maxjoehnk/Mizer/crates/runtime/pipeline/node)`
    ... which satisfies path dependency `mizer-node` (locked to 0.1.0) of package `mizer-api v0.1.0 (/tmp/renovate/repos/github/maxjoehnk/Mizer/crates/api)`
perhaps a crate was updated and forgotten to be re-vendored?

@renovate renovate bot force-pushed the renovate/usvg-0.x branch 13 times, most recently from 37169f4 to 04fb9e5 Compare July 11, 2024 13:10
@renovate renovate bot force-pushed the renovate/usvg-0.x branch 4 times, most recently from 5fd0506 to 2a5d394 Compare July 17, 2024 21:54
@renovate renovate bot force-pushed the renovate/usvg-0.x branch 3 times, most recently from e63064d to f6a250f Compare July 19, 2024 09:13
@renovate renovate bot force-pushed the renovate/usvg-0.x branch from f6a250f to 61fe20f Compare July 20, 2024 21:43
@renovate renovate bot changed the title fix(deps): update rust crate usvg to 0.42 fix(deps): update rust crate usvg to 0.42 - autoclosed Jul 20, 2024
@renovate renovate bot closed this Jul 20, 2024
@renovate renovate bot deleted the renovate/usvg-0.x branch July 20, 2024 22:09
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.

0 participants