<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#c18">Comment # 18</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 Dileep Sankhla from <a href="show_bug.cgi?id=81748#c17">comment #17</a>)
<span class="quote">> The font names that I have created in the function are only applicable for
> the base-14 fonts if you choose a base-14 font from KfontRequester in
> Okular. Then the names will be meaningful postscripts base-14 font names
> like Times-BoldItalic, Courier-BoldOblique, etc. The other font names it
> does generate are meaningless here.</span >
Afaikt, Times, Helvetica and Courier are proprietary fonts that are not
available on a typical Linux system. So, without further measures, I can't
select a Base14 font from KFontRequester. How did you do it?
<span class="quote">> It won't work for rest other fonts and the behavior is
> undefined.</span >
Yes, but that could indeed be a good experiment. We can manually figure out the
true postscript names of some system fonts (using fontconfig, or ttfdump), and
then hardcode the postscript name into the resource generated by
createAnnotDrawFont. Like
fontDict->add(copyString("BaseFont"), Object(objName, "DejaVuSerif"));
fontDict->add(copyString("Subtype"), Object(objName, "TrueType"));
That would be a good starting point to debug into popplers font lookup code,
and to extend the fake font resource with encoding and font descriptor and
learn how things get processed.</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>