Bug 221402

Summary: poor rendering compared to gv - anti-aliasing options wrong?
Product: [Applications] okular Reporter: markus.parker
Component: PS backendAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Exchanging the parameters may resolve the problem

Description markus.parker 2010-01-05 15:05:41 UTC
Version:            (using KDE 4.3.4)
OS:                Linux
Installed from:    openSUSE RPMs

The rendering of postscript file yields poor results compared to the program gv on my screen. When looking at the anti-aliasing options of okular in generator_ghostview.cpp I discovered that okular uses 2 bits for text alpha and 4 bits for graphics alpha, while gv uses 4 bits for text alpha and 2 bits for graphics alpha. When I tell gv to do it the other way around, the result was as poor as in okular.

On my Laptop display (1400x1050) there is hardly any  difference between okular and gv, however on my usual screen (1050x1680), the visualization is kind of ugly. I guess this is because of the higher resolution.
Comment 1 markus.parker 2010-01-05 15:08:09 UTC
Created attachment 39584 [details]
Exchanging the parameters may resolve the problem

I did not compile the changes or test it, but I hope this illustrates my point.
Comment 2 markus.parker 2010-01-05 15:12:00 UTC
Comment on attachment 39584 [details]
Exchanging the parameters may resolve the problem

>238,239c238,239
><     if (cache_AAgfx) graphicsAA = 4;
><     if (cache_AAtext) textAA = 2;
>---
>>     if (cache_AAgfx) graphicsAA = 2;
>>     if (cache_AAtext) textAA = 4;
This refers to the file
/trunk/KDE/kdegraphics/okular/kdegraphics/okular/generators/spectre/generator_ghostview.cpp
Comment 3 Albert Astals Cid 2010-01-06 00:17:31 UTC
SVN commit 1070544 by aacid:

increase text alpha bits to 4 as it's known to improve quality quite a bit
BUGS: 221402


 M  +1 -1      generator_ghostview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1070544