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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri May 25 19:55:09 UTC 2018


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

--- Comment #6 from Tobias Deiminger <haxtibal at posteo.de> ---
(In reply to Albert Astals Cid from comment #5)
> What you're describing seems like what i fixed in
> https://cgit.freedesktop.org/poppler/poppler/commit/
> ?id=8821c04f36cb737776cd9077a46f1a9f86ca54e7 but not sure if that patch
> helps for non Forms, maybe not, but you could get inspired by it?
Thanks Albert. Falling back to form DA may indeed be a viable path. But it
won't help for attachment 103449 as it has no DA in AcroForm either.

A bug report of yours at https://bugs.scribus.net/view.php?id=5385
seems actually very related. Scribus made the same mistake as attachment
103449, namley giving font descriptor instead of font resource as Tf operand.
Scribus devs have confirmed and fixed it. For attachment 103449 it's similar
but just the special case of freetext annotation. We could try to report bugs
to prawnpdf and pdfcomment as you did it those days (todo: check latest version
of both projects). Additionally we could aim for a workaround in poppler, but
that maybe isn't worth the effort or is even contradictory because we then
support buggy pdf writers. What would you say?

Despite potential bugs in external projects, it still holds that poppler
doesn't support custom fonts for freetext in general and we should implement
it. I take inspiration from AnnotWidget for how to lookup and use resources
from the default resource directory.

-- 
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/20180525/f178ceb3/attachment.html>


More information about the Poppler-bugs mailing list