[Poppler-bugs] [Bug 105531] [PATCH] Implement ArthurOutputDev::drawImageMask

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Apr 5 20:09:27 UTC 2018


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

--- Comment #6 from oliver.sander at tu-dresden.de ---
That big 'n' is one of the type3 font letters contained in the file.  I think
what is happening is the following:

- ArthurOutputDev claims to do type3 support by the beginType3Char/endType3Char
mechanism

- Hence beginType3Char/endType3Char are being called, but they do nothing.

- In between, the actual glyph rendering operations are called.  For each glyph
there is one call to drawImageMask, because the font is a bitmap font.

- But since beginType3Char/endType3Char do not do the necessary
transformations, the glyph rendering identifies font coordinates and page
coordinates, and all letters appear in the lower left corner.  The one you see
is the last one.

My explanation is substantiated by the following simple patch, which switches
off type3 rendering for good. Then the 'n' is gone (but also drawImageMask is
not called anymore, and the document ceases to be a good test case for that
method).

Thinking about this some more, one could probably implement type3 font support
by "simply" making beginType3Char/endType3Char do the correct transformations. 
This would be an alternative implementation to

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

and possibly simpler.  Given that 105772 already kind-of works, do you think
the alternative should be explored?

-- 
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/20180405/15e5eeb7/attachment.html>


More information about the Poppler-bugs mailing list