[poppler] poppler/CairoOutputDev.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Dec 30 22:30:30 UTC 2022


 poppler/CairoOutputDev.cc |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 7d14f465a6441f3df4389df375b154687e1fdb6b
Author: Zachary Travis <ztravis at everlaw.com>
Date:   Fri Aug 13 20:33:35 2021 -0700

    Ignore text rendering mode for type3 fonts

diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc
index a72c218a..2f7ca093 100644
--- a/poppler/CairoOutputDev.cc
+++ b/poppler/CairoOutputDev.cc
@@ -1536,6 +1536,12 @@ void CairoOutputDev::endString(GfxState *state)
         goto finish;
     }
 
+    if (state->getFont()->getType() == fontType3 && render != 7) {
+        // If the current font is a type 3 font, we should ignore the text rendering mode
+        // (and use the default of 0) as long as we are going to either fill or stroke.
+        render = 0;
+    }
+
     if (!(render & 1)) {
         LOG(printf("fill string\n"));
         cairo_set_source(cairo, fill_pattern);


More information about the poppler mailing list