[Poppler-bugs] [Bug 81748] FreeText annotation ignores font
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Aug 8 13:50:30 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=81748
--- Comment #18 from Tobias Deiminger <haxtibal at posteo.de> ---
(In reply to Dileep Sankhla from comment #17)
> 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.
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?
> It won't work for rest other fonts and the behavior is
> undefined.
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.
--
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/20180808/ae9e5f94/attachment.html>
More information about the Poppler-bugs
mailing list