diff options
author | Federico Mena Quintero <federico@gnome.org> | 2022-02-04 20:38:07 -0600 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2022-03-09 16:43:07 -0600 |
commit | 5ab8d17384ab03e6ba51f1e10b7d48c1d64f5c96 (patch) | |
tree | 8fd69001a597475270b636fbd61db97bf2a69eb2 | |
parent | 84eeacece6b563725e779901c9221826b797f465 (diff) | |
download | librsvg-5ab8d17384ab03e6ba51f1e10b7d48c1d64f5c96.tar.gz |
TextSpan: pass the original stroke paint source here
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/673>
-rw-r--r-- | src/layout.rs | 1 | ||||
-rw-r--r-- | src/text.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/layout.rs b/src/layout.rs index acf11755..1a1fc54e 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -109,6 +109,7 @@ pub struct TextSpan { pub paint_order: PaintOrder, pub stroke: Stroke, pub stroke_paint: UserSpacePaintSource, + pub stroke_paint_source: PaintSource, pub fill_paint: UserSpacePaintSource, pub text_rendering: TextRendering, pub link_target: Option<String>, diff --git a/src/text.rs b/src/text.rs index 0234df94..7f897eb4 100644 --- a/src/text.rs +++ b/src/text.rs @@ -829,6 +829,7 @@ impl Draw for Text { paint_order: span.paint_order, stroke: span.stroke, stroke_paint, + stroke_paint_source: span.stroke_paint, fill_paint, text_rendering: span.text_rendering, link_target: span.link_target, |