[latex3-commits] [latex3/latex3] main: Correct ExtGState setup for opacity (see #1472) (5b95d0456)

github at latex-project.org github at latex-project.org
Tue Feb 27 22:56:21 CET 2024


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/5b95d0456e404d17e778b35805ef4031a8def69c

>---------------------------------------------------------------

commit 5b95d0456e404d17e778b35805ef4031a8def69c
Author: Joseph Wright <joseph at texdev.net>
Date:   Tue Feb 27 21:56:21 2024 +0000

    Correct ExtGState setup for opacity (see #1472)


>---------------------------------------------------------------

5b95d0456e404d17e778b35805ef4031a8def69c
 l3backend/l3backend-opacity.dtx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/l3backend/l3backend-opacity.dtx b/l3backend/l3backend-opacity.dtx
index 6cc972f7d..87698f2a0 100644
--- a/l3backend/l3backend-opacity.dtx
+++ b/l3backend/l3backend-opacity.dtx
@@ -157,6 +157,7 @@
 %
 % \begin{variable}{\l_@@_backend_fill_tl, \l_@@_backend_stroke_tl}
 %   We use |tl| here for speed: at the backend, this should be reasonable.
+%   Both need to start off fully opaque.
 %    \begin{macrocode}
 \tl_new:N \l_@@_backend_fill_tl
 \tl_new:N \l_@@_backend_stroke_tl
@@ -237,7 +238,7 @@
           { opacity.fill #1 }
           { << /ca ~ #1 >> }
         \pdfmanagement_add:nnn { Page / Resources / ExtGState }
-          { opacity.stroke #1 }
+          { opacity.stroke #2 }
           { << /CA ~ #2 >> }
 %<*dvipdfmx|xetex>
         \__kernel_backend_literal_pdf:n





More information about the latex3-commits mailing list.