<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - shows wrong characters"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103127#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - shows wrong characters"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103127">bug 103127</a>
from <span class="vcard"><a class="email" href="mailto:ajohnson@redneon.com" title="Adrian Johnson <ajohnson@redneon.com>"> <span class="fn">Adrian Johnson</span></a>
</span></b>
<pre>I don't know why people keep using buggy pdf printers when Word has a perfectly
good save as pdf feature builtin that preserves all the hyperlinks.
The pdf fails to render with Adobe Reader on Linux. Since it works on other
viewers on Linux I had a quick look to see if there is anything we can do.
The problem is the fonts are all non-embedded CID TrueType with Identity
encoding. The fonts do have ToUnicode maps which I assume is what the other
viewers are using to map character codes to a substitute font.
When loading a substitute CID font, GfxCIDFont::getCodeToGIDMap() is called to
map the character codes to the substitute font glyphs.
At line 2252 we bail out
if (getCollection()->cmp("Adobe-Identity") == 0) return NULL;
I commented out this line and the PDF seems to render fine (as it is not in
English a can't be 100% certain).
I don't know if this is a fix or a hack. I have not spent any time
investigating the implications of commenting out this line.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>