The group returned by Text::flattened always has the default abs_transform. usvg::text::flatten::flatten does not propagate the containing Text's abs_transform.
This does not affect resvg since resvg::render::render_group re-calculates abs_transform (Line 56).
resvg version: 0.41
The group returned by
Text::flattened
always has the defaultabs_transform
.usvg::text::flatten::flatten
does not propagate the containingText
'sabs_transform
.This does not affect
resvg
sinceresvg::render::render_group
re-calculatesabs_transform
(Line 56).https://github.com/RazrFalcon/resvg/blob/b908baf1a2b7bd724a7896f29bf56e2d666b87ff/crates/resvg/src/render.rs#L50-L61
All tests pass even after modifying
usvg::text::flatten::flatten
as follows.Is it intended to
re-calculatekeepabs_transform
inresvg
andabs_transform
inText::flattened
default?