[librsvg: 8/13] TextSpan: pass the original stroke paint source here




commit 02584e0381ec4c77aa3d6e02eebfe50b51a60469
Author: Federico Mena Quintero <federico gnome org>
Date:   Fri Feb 4 20:38:07 2022 -0600

    TextSpan: pass the original stroke paint source here
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/660>

 src/layout.rs | 1 +
 src/text.rs   | 1 +
 2 files changed, 2 insertions(+)
---
diff --git a/src/layout.rs b/src/layout.rs
index acf117552..1a1fc54e1 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 11659cfde..712c8c6d1 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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]