[Poppler-bugs] [Bug 95344] Text sized and positioned incorrectly

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed May 11 12:20:29 UTC 2016


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

--- Comment #3 from Thomas Freitag <Thomas.Freitag at alfa.de> ---
(In reply to Adrian Johnson from comment #2)
> (In reply to Thomas Freitag from comment #1)
> > Cairo uses the same implementation but it never caches the glyphs, so they
> > are always redrawn.
> 
> Cairo caches the glyphs within cairo. Always drawing the glyphs would be
> very slow.

??? 
Looking in the implementation of CairoOutputDev::beginType3Char the code of the
glyph is not saved or used, it always return gFalse, therefore Gfx calls
display for the charProc and the endType3Char always, and
CairoOutputDev::endType3Char just restores what is saved in beginType3Char. Is
there some magic I don't understand?

On the other hand, I missed that splash indeed uses sometimes the cached glyphs
for this PDF, I missed that somehow in my first investigation. And the
rendering time increases a little bit 

w using the cache

real    0m0.182s
user    0m0.163s
sys     0m0.021s

w/o using the cache

real    0m0.214s
user    0m0.200s
sys     0m0.018s

So I fear I need some more time for investigation.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20160511/68062ca8/attachment.html>


More information about the Poppler-bugs mailing list