<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - FreeText annotation ignores font"
href="https://bugs.freedesktop.org/show_bug.cgi?id=81748#c12">Comment # 12</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - FreeText annotation ignores font"
href="https://bugs.freedesktop.org/show_bug.cgi?id=81748">bug 81748</a>
from <span class="vcard"><a class="email" href="mailto:haxtibal@posteo.de" title="Tobias Deiminger <haxtibal@posteo.de>"> <span class="fn">Tobias Deiminger</span></a>
</span></b>
<pre>(In reply to Phil from <a href="show_bug.cgi?id=81748#c0">comment #0</a>)
<span class="quote">> generating the PDF with Ruby Prawn gem, and
> adding the annotations with Ruby Origami PDF gem.</span >
Should have read that more carefully, sorry. So it is origami [0], not
prawnpdf, who needs to setup default appearance and fonts in default resources
correctly. Or even the origami user, depending on how low-level the API is.
@Phil: From a very brief look at [1] it seems like if Origami users want to set
a font for FreeText, they are intended to edit DA as raw string. Is it? If so,
it would probably also be your own responsibility to invent a font descriptor,
create a related font resource and finally add the resource to the font sub
dictionary of default resource dictionary in InteractiveForm [2].
[0] <a href="https://github.com/gdelugre/origami">https://github.com/gdelugre/origami</a>
[1]
<a href="https://github.com/gdelugre/origami/blob/98ea557af7aa9e926aac564bf89e6e0ead4a1a5e/lib/origami/annotations.rb#L309">https://github.com/gdelugre/origami/blob/98ea557af7aa9e926aac564bf89e6e0ead4a1a5e/lib/origami/annotations.rb#L309</a>
[2]
<a href="https://github.com/gdelugre/origami/blob/16c6fffd433efd2ef9d7d56795912c8dc9a38cf3/lib/origami/acroform.rb#L114">https://github.com/gdelugre/origami/blob/16c6fffd433efd2ef9d7d56795912c8dc9a38cf3/lib/origami/acroform.rb#L114</a></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>