[librsvg/librsvg-2.52: 9/19] TextSpan: pass the original stroke paint source here




commit 869bdf2f18ce2dc6246bfccc046ce636e0f2ae96
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 0fd5ac405..95ca58122 100644
--- a/src/text.rs
+++ b/src/text.rs
@@ -828,6 +828,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]