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