diff options
author | Zachary Travis <ztravis@everlaw.com> | 2021-08-13 20:33:35 -0700 |
---|---|---|
committer | Albert Astals Cid <tsdgeos@yahoo.es> | 2022-12-30 22:23:38 +0000 |
commit | 7d14f465a6441f3df4389df375b154687e1fdb6b (patch) | |
tree | de33b844862cf49cac0163e6bfc6f70967bd5a35 | |
parent | f9d958ddee1e9a77d41c80793fd20ce5299f08ef (diff) |
Ignore text rendering mode for type3 fonts
-rw-r--r-- | poppler/CairoOutputDev.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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); |