<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Font disregarded in Freetext annotation with default appearance (DA) but without appearance stream (AP)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=107584">107584</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Font disregarded in Freetext annotation with default appearance (DA) but without appearance stream (AP)
</td>
</tr>
<tr>
<th>Product</th>
<td>poppler
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Assignee</th>
<td>poppler-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>oliver.sander@tu-dresden.de
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=141117" name="attach_141117" title="Test file with freetext annotation without appearance stream">attachment 141117</a> <a href="attachment.cgi?id=141117&action=edit" title="Test file with freetext annotation without appearance stream">[details]</a></span>
Test file with freetext annotation without appearance stream
Attached is an example file with a freetext annotation. This annotation has a
default appearance (DA) but no appearance stream (AP). Poppler disregards the
font of the annotation. While admittedly the file has been constructed by
hand-editing (annotating the file in Adobe Reader and then manually removing
the /AP part), it is nevertheless a standard-conforming file.
Fixing this issue is a necessary first step towards fixing
<a class="bz_bug_link
bz_status_NEW "
title="NEW - FreeText annotation ignores font"
href="show_bug.cgi?id=81748">https://bugs.freedesktop.org/show_bug.cgi?id=81748</a> .
I attach a preliminary patch which kind-of fixes the issue. 'Kind-of' only,
because there are (at least) two issues with it:
- poppler issues
"Syntax Warning: Unknown font type: '???'"
from the call to 'GfxFont::makeFont' in Annot.cc:2933
- The text is moved a little bit towards the top of the page (notice how the
top part of "This is a test" is cut off).
The fact that poppler renders the text in the wrong color (red instead of
black) is a separate bug.
Test file and patch have been written by Tobias Deiminger, who deserves all the
praise.</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>