[Poppler-bugs] [Bug 81748] FreeText annotation ignores font

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Aug 6 00:44:57 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=81748

--- Comment #14 from Dileep Sankhla <sankhla.dileep96 at gmail.com> ---
Created attachment 140969
  --> https://bugs.freedesktop.org/attachment.cgi?id=140969&action=edit
Patch to generate font tags and get font name and create the FreeText
Annotations with the Base 14 fonts

This patch is generated as per my experiment in Poppler and is a workaround for
the Base 14/standard fonts. It gets rid of the "Invalid_font" tags and
generates meaningful font tags. Secondly, the font name as per the Base 14 font
names is exactly generated from the QFont and the font name is set in the font
dictionary inside createAnnotDrawFont. The default is set to "Helvetica". What
this patch can do is when the Okular program is in the memory, you can try
different base-14 fonts for the typewriter annotation but if you save the PDF
doc and then quit it, the fonts will be set to "Helvetica".
Imho this experimental patch can be extended and modified to write the font
dictionary for the base 14 fonts in the document and to generate freetext
appearance based on the DA and DR entries and the font dict. The second follows
the embedded fonts.

-- 
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/20180806/918be130/attachment.html>


More information about the Poppler-bugs mailing list