Bug 692004

Summary: Text rendering mode 3 ingnored for high resolutions
Product: Ghostscript Reporter: Zoltán <zoltan>
Component: GeneralAssignee: Chris Liddell (chrisl) <chris.liddell>
Status: RESOLVED FIXED    
Severity: normal CC: henry.stiles
Priority: P4    
Version: 9.00   
Hardware: PC   
OS: Windows 7   
Customer: Word Size: ---
Attachments: text rendering mode = 3

Description Zoltán 2011-02-27 21:26:57 UTC
Attached PDF contains a text with rendering mode = 3 (invisible). 

This parameter is ignored when resolution is set too high (e.g. 1200 dpi or over) – that is, the text is shown in its original color (orange).

For lower resolutions (e.g 200 dpi) the file renders as expected (no visible text). 

Command line:

gs -r1200 -dNOPAUSE -dBATCH -sDEVICE=tiffsep -sOutputFile=%1.%%03d.tif %1
gs -r200 -dNOPAUSE -dBATCH -sDEVICE=tiffsep -sOutputFile=%1.%%03d.tif %1
Comment 1 Zoltán 2011-02-27 21:28:02 UTC
Created attachment 7295 [details]
text rendering mode = 3
Comment 2 Chris Liddell (chrisl) 2011-03-17 09:56:51 UTC
The problem was caused by glyphs being rendered uncached, and thus bypassing the "normal" method of avoiding imaging glyphs in rendering mode 3.

I've added a check where uncached glyphs are rendered, so that the marking operation is "short circuited" for rendering mode 3, but the current point is still correctly updated.

fixed in r12299.
Comment 3 Zoltán 2011-03-23 13:19:23 UTC
May you give a link to the implemented changes, please?
Comment 4 Chris Liddell (chrisl) 2011-03-23 13:45:31 UTC
Sorry, here's the link for the commit:
http://ghostscript.com/pipermail/gs-cvs/2011-March/012492.html


I need to assess whether a similar change is needed for fonts with PaintType 2 - if they do, I'll update this bug with the information.