[Poppler-bugs] [Bug 50992] library should be thread-safe
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Dec 28 08:01:56 PST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=50992
--- Comment #122 from Thomas Freitag <Thomas.Freitag at alfa.de> ---
(In reply to comment #119)
> Created attachment 70852 [details]
> Difference of endering of page4 of bug-poppler26776 between new and old code
After a lot of work the last weekends, often went one step forward and then two
steps back, optimizing the code, fixing some areas and restructuring others, I
now get now a solution which looks complete in my eyes, but I wasn't able to
solve this problem. After looking hours into this PDF I encountered that it
isn't a problem of the thread-safe page rendering, but a problem of the type 3
font cache in splash: this cache isn't exact, quite the contrary, it seems as
if it produces random output.
You can see that if You just render page 4 (with -f 4 -l 4) with the old code:
You'll get the same output as with the new code.
So a deeper look in the implementation of this cache is necessary to produce an
exact or nearly exact output, indifferent if the char is taken from the cache
or not. But this is another matter alltogether.
BTW, examining the left failed tests of my solution I encountered that we have
a simular problem with the "normal" font cache using fontconfig: because it is
not exact either sometimes the algorithm decides to take a cached font which
output is other than if the font would be fetched new with fontconfig, in other
words, the cached font file is another font file as if searched fresh with
fontconfig.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20121228/ba9b2d3c/attachment.html>
More information about the Poppler-bugs
mailing list