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