[Poppler-bugs] [Bug 101624] New: Special chars in a MacRoman encoded font are displayed wrong

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jun 28 11:32:38 UTC 2017


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

            Bug ID: 101624
           Summary: Special chars in a MacRoman encoded font are displayed
                    wrong
           Product: poppler
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: Thomas.Freitag at alfa.de

Created attachment 132299
  --> https://bugs.freedesktop.org/attachment.cgi?id=132299&action=edit
pdf with this problem

In the attached PDF there are two embedded fonts. Both should use the
MacRomanEncoding and both font files have a cmap for MacRoman. But these cmaps
seem to be wrong. On the other hand they both also have a unicode cmap, but
poppler says in its decision tree:

  //    1a. If the PDF font specified MacRomanEncoding and the
  //        TrueType font has a Macintosh Roman cmap, use it, and
  //        reverse map the char names through MacRomanEncoding to
  //        get char codes.
  //    1b. If the PDF font is not symbolic or the PDF font is not
  //        embedded, and the TrueType font has a Microsoft Unicode
  //        cmap or a non-Microsoft Unicode cmap, use it, and use the
  //        Unicode indexes, not the char codes.

mupdf, acrobat and ghostscript are displaying the PDF correctly, xpdf and
poppler not.

mupdf displays it correctly because it uses the LAST cmap in the font file
which fits, and this is always the unicode one. If I force mupdf to use the
FIRST (changing the code), it displays the PDF like poppler.

-- 
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/20170628/b8045ee6/attachment.html>


More information about the Poppler-bugs mailing list