fix(deps): update rust crate usvg to 0.42 - autoclosed #630
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
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
andSVG
tables are supported.Thanks to @LaurenzV.
usvg::FontResolver
now.Thanks to @LaurenzV.
usvg::Options::font_resolver
. Similar tousvg::Options::image_href_resolver
we already had.usvg::Options::fontdb
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 optionalclip-path
.This greatly simplifies
image
rendering.usvg::Image::size
Similar to
image
above, but affects the rootsvg
element instead.pattern
viewbox flattening.Similar to
image
above, but for patterns.Thanks to @LaurenzV.
Changed
usvg::fontdb::Database
should be set inusvg::Options
and not passedto the parser separately now.
usvg::Options
andusvg::ImageHrefResolver
have a lifetime now.usvg::Visibility
enum with justbool
.usvg::Path::visibility()
is replaced withusvg::Path::is_visible()
usvg::Image::visibility()
is replaced withusvg::Image::is_visible()
usvg::TextSpan::visibility()
is replaced withusvg::TextSpan::is_visible()
feImage
content as a link to an element.In SVG,
feImage
can contain a link to an element or a base64 image data, just likeimage
.From now, the inlined base64 data will always be represented by a link to an actual
image
element.feImage
rendering, since we don't have to handle both cases now.--list-fonts
resvg argument can be used without providing an SVG file now.Can simply call
resvg --list-fonts
now.--list-fonts
resvg argument includes generic font family names as well now.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
. Useusvg::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.resvg_get_image_viewbox
. Useresvg_get_image_size
instead.Fixed
context-fill
handling.Thanks to @LaurenzV.
v0.41.0
Compare Source
Added
context-fill
andcontext-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 returnsjust vector paths.
Thanks to @LaurenzV.
Fixed
text
element uses multiple fonts and one of them produces ligatures.use
resolving.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.
This PR has been generated by Mend Renovate. View repository job log here.