Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > bc219369320b6b5781eed48254462cef > files > 14

ghostscript-9.25-1.2.mga6.src.rpm

From 677da1c0ac20020760b372a0c8aa5546d0a30429 Mon Sep 17 00:00:00 2001
From: Chris Liddell <chris.liddell@artifex.com>
Date: Tue, 25 Sep 2018 11:57:12 +0100
Subject: [PATCH] Bug 699810: Explicitly set stroke color for PDF Type 3 glyphs

When we render a cache-viable Type 3 glyphs (i.e. one that uses 'd1' rather
than 'd0'), ensure we set the stroke color to match the fill color.

This is necessary because if we do cache the glyph, we'll render to a mask, and
fill the mask. On the other hand, if we have to render the glyph uncached,
we have to ensure that the entire glyph is drawn with the same (fill) color, as
it would be when drawn cached.
---
 Resource/Init/pdf_font.ps | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Resource/Init/pdf_font.ps b/Resource/Init/pdf_font.ps
index feaf0d0..b23ce0a 100644
--- a/Resource/Init/pdf_font.ps
+++ b/Resource/Init/pdf_font.ps
@@ -2521,6 +2521,7 @@ drawopdict begin
       pop pop pop pop
       //d0 exec
     } {
+      currentcolor currentcolorspace .swapcolors setcolorspace setcolor .swapcolors
       6 -2 roll .adjustcharwidth 6 2 roll setcachedevice
     } ifelse
   } bind executeonly def
-- 
2.9.1