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 resvg to 0.44 #653

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 21, 2024

This PR contains the following updates:

Package Type Update Change
resvg dependencies minor 0.41 -> 0.44

Release Notes

RazrFalcon/resvg (resvg)

v0.44.0

Compare Source

Added
  • Stylesheet injection support.
    Thanks to @​LaurenzV.
  • (c-api) resvg_get_object_bbox
  • (c-api) cargo-c metadata.
    Thanks to @​lu-zero.
  • Implement From for fontdb and usvg font types.
    Thanks to @​dhardy.
Changed
  • (c-api) resvg_get_image_bbox returns a layer and not object bounding box now.
    Use resvg_get_object_bbox to preserve the old behavior.
Fixed
  • (svgtypes) Path parsing with S or T segments after A.
  • Bounding box calculation for the root group used for viewBox flattening.

v0.43.0

Compare Source

Added
Changed
  • Use zune-jpeg instead of jpeg-decoder.
    Thanks to @​mattfbacon.
  • Update dependencies.
Fixed
  • Canvas size limits calculation.
  • SVG fonts handling.
    Thanks to @​LaurenzV.
  • Transforms in COLR fonts.
    Thanks to @​LaurenzV.

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

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 is behind base branch, 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/resvg-0.x branch 3 times, most recently from ba92262 to 0af1381 Compare July 26, 2024 13:13
@renovate renovate bot force-pushed the renovate/resvg-0.x branch 27 times, most recently from faed23a to 22a4f2c Compare August 9, 2024 08:41
@renovate renovate bot force-pushed the renovate/resvg-0.x branch 3 times, most recently from 21b8c3d to cff9b1d Compare August 10, 2024 17:34
@renovate renovate bot changed the title fix(deps): update rust crate resvg to 0.42 fix(deps): update rust crate resvg to 0.43 Aug 10, 2024
@renovate renovate bot force-pushed the renovate/resvg-0.x branch 5 times, most recently from 70452f4 to 047e68f Compare August 15, 2024 23:28
@renovate renovate bot force-pushed the renovate/resvg-0.x branch 5 times, most recently from d6aac07 to 446113b Compare September 5, 2024 13:23
@renovate renovate bot force-pushed the renovate/resvg-0.x branch 2 times, most recently from 02789a8 to 3cff4a4 Compare September 9, 2024 17:35
@renovate renovate bot force-pushed the renovate/resvg-0.x branch 9 times, most recently from 23c0060 to 0c51d2b Compare September 28, 2024 08:49
@renovate renovate bot changed the title fix(deps): update rust crate resvg to 0.43 fix(deps): update rust crate resvg to 0.44 Sep 28, 2024
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