diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2018-09-25 11:57:12 +0100 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2018-09-25 11:57:12 +0100 |
commit | 677da1c0ac20020760b372a0c8aa5546d0a30429 (patch) | |
tree | 8e6295654bd6124a0f99efd7b86032d87f9ea665 | |
parent | db606d2ffd204e89c812408773a15ef183ebd4b6 (diff) | |
download | ghostpdl-bug699791.tar.gz |
Bug 699810: Explicitly set stroke color for PDF Type 3 glyphsbug699791
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.
-rw-r--r-- | Resource/Init/pdf_font.ps | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Resource/Init/pdf_font.ps b/Resource/Init/pdf_font.ps index feaf0d036..b23ce0adb 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 |