[Poppler-bugs] [Bug 2807] doesn't handle text rendering modes

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Sep 10 02:25:31 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=2807

thomasf <Thomas.Freitag at alfa.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #36528|0                           |1
        is obsolete|                            |

--- Comment #29 from thomasf <Thomas.Freitag at alfa.de> 2010-09-10 02:25:31 PDT ---
Created an attachment (id=38596)
 View: https://bugs.freedesktop.org/attachment.cgi?id=38596
 Review: https://bugs.freedesktop.org/review?bug=2807&attachment=38596

try to solve antialias of in PDF of comment 28

With this patch I now try to fix the artifacts when antialias is enabled. At
least I found the code, where the weird artifacts came from:
Reason for this is that antialising is done on the clipping path, and when
filling is done in small pieces, we got small clipping pathes but a lot of
them. Therefore the "inside" lines of the small clipping pathes should not be
antialiased, only the outer lines from the clipping path of the complete fill
area. I think, that was the reason to introduce the lines of comment 25: the
person who insert them wanted to get rid of the misbehaviour for the "inner"
clipping pathes and approved the loss of antialising of the "outer" clipping
pathes.
I myself have only an idea, how antialising is really done in splash, so I made
a hack for the last line of the fill area in case of filling text: instead of
using the antialiased last line (which is wrong in this case), I duplicated the
line before last. This is not really correct, and perhaps someone else with a
deeper knowledge can do it in a better way in future, but it was the easiest
way to solve it without making to much changes, and in my opinion the firefox
text looks much better than the one which was produced without antialiasing,
and also the other PDF with text in pattern colorspace I tested are almost
looking better than before.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list