1154f6
From 5dbe101b7c3561aedf33872e218b8d1b6984f623 Mon Sep 17 00:00:00 2001
1154f6
From: Albert Astals Cid <aacid@kde.org>
1154f6
Date: Sat, 8 May 2021 00:54:13 +0200
1154f6
Subject: [PATCH] Restore setting the Encoding in createAnnotDrawFont
1154f6
1154f6
It was removed in 9db685f379c1c9195b5f0c9a693e7a581e6b214f and as far as
1154f6
i remember the reason was that signatures created with that hung Adobe
1154f6
Reader, but I can't reproduce it anymore and on top of that is causing
1154f6
regressions when rendering PDF files (Issue #1070) so restore it.
1154f6
---
1154f6
 poppler/Annot.cc | 1 +
1154f6
 1 file changed, 1 insertion(+)
1154f6
1154f6
diff --git a/poppler/Annot.cc b/poppler/Annot.cc
1154f6
index 5287b4dc..40b1085a 100644
1154f6
--- a/poppler/Annot.cc
1154f6
+++ b/poppler/Annot.cc
1154f6
@@ -2852,6 +2852,7 @@ static GfxFont *createAnnotDrawFont(XRef *xref, Dict *fontParentDict, const char
1154f6
     Dict *fontDict = new Dict(xref);
1154f6
     fontDict->add("BaseFont", Object(objName, fontname));
1154f6
     fontDict->add("Subtype", Object(objName, "Type1"));
1154f6
+    fontDict->add("Encoding", Object(objName, "WinAnsiEncoding"));
1154f6
 
1154f6
     Object fontsDictObj = fontParentDict->lookup("Font");
1154f6
     if (!fontsDictObj.isDict()) {
1154f6
-- 
1154f6
2.31.1
1154f6