[Poppler-bugs] [Bug 101855] Embedded TrueType Symbols with accents not rendered correctly

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jul 20 17:08:25 UTC 2017


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

--- Comment #3 from Simon Shugar <simon.shugar at veeva.com> ---
Update:

After investigating the code with a colleague we discovered that in
GfxFont.cc#*Gfx8BitFont::getCodeToGIDMap(FoFiTrueType *ff) ArialNarrow and
Calibri are going through logic for (flags & fontSymbolic) && macRomanCmap >=
0) (line 1747 in 0.56.0). In the logic the flag for useMacRoman is never set. I
have limited knowledge of the code base but by setting this flag within else if
statement my document renders correctly. 

Interestingly all my fonts are meant to be WinAnsi encoded but ArialNarrow and
Calibri come through as MacRoman (see pdffonts out below). Though after doing a
bit of searching this article
(https://blog.idrsolutions.com/2010/01/embedded-pdf-truetype-fonts-are-always-mac-encoded-unless-they-are-not/)
states that most embedded true type fonts come through as MacRoman. If anyone
is able to clarify this please let me know. 

name                                 type              encoding         emb sub
uni object ID
------------------------------------ ----------------- ---------------- --- ---
--- ---------
Times New Roman                      TrueType          WinAnsi          yes no 
no       8  0
ArialNarrow-Bold                     TrueType          WinAnsi          yes no 
no       9  0
Arial,Bold                           TrueType          WinAnsi          yes no 
no      10  0
Calibri-Bold                         TrueType          WinAnsi          yes no 
no      11  0

-- 
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/20170720/2e64246a/attachment-0001.html>


More information about the Poppler-bugs mailing list