summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2021-05-08 00:54:13 +0200
committerAlbert Astals Cid <aacid@kde.org>2021-05-08 00:54:13 +0200
commit5dbe101b7c3561aedf33872e218b8d1b6984f623 (patch)
tree1694e295b92d3c32e1f8b2ef737be2bc099a2f25
parent7961ff99df6db70319548b07249194cabfc74783 (diff)
Restore setting the Encoding in createAnnotDrawFont
It was removed in 9db685f379c1c9195b5f0c9a693e7a581e6b214f and as far as i remember the reason was that signatures created with that hung Adobe Reader, but I can't reproduce it anymore and on top of that is causing regressions when rendering PDF files (Issue #1070) so restore it.
-rw-r--r--poppler/Annot.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index 5287b4dc..40b1085a 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -2852,6 +2852,7 @@ static GfxFont *createAnnotDrawFont(XRef *xref, Dict *fontParentDict, const char
Dict *fontDict = new Dict(xref);
fontDict->add("BaseFont", Object(objName, fontname));
fontDict->add("Subtype", Object(objName, "Type1"));
+ fontDict->add("Encoding", Object(objName, "WinAnsiEncoding"));
Object fontsDictObj = fontParentDict->lookup("Font");
if (!fontsDictObj.isDict()) {