[Poppler-bugs] [Bug 102290] [PATCH] Replace Splash font rendering by Qt font rendering
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Aug 24 08:33:33 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=102290
--- Comment #13 from oliver.sander at tu-dresden.de ---
Okay, I figured it out, at least for Albert's test file.
For that particular file, the CharCode 'code' _is_ the glyph index. No mapping
is needed at all. I do not know under what conditions this property holds.
The font in the file has encoding 'Identity-H'. Maybe it only holds for such
encodings.
My patch also ignored the text matrix -- that's why the glyphs were so tiny.
The font in the file claims to have font size 1, and then scales the glyphs
using the text matrix.
It is not clear to me whether the text matrix may change with each glyph, or
only with each font. To be on the safe side I update it at each glyph now.
That's not a lot of additional work, as I need to do a per-glyph transformation
anyway.
A new patch is attached. Let's see where it breaks next. :-)
--
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/20170824/4d42a2ec/attachment.html>
More information about the Poppler-bugs
mailing list