Commit df57ef8a authored by Zachary Travis's avatar Zachary Travis
Browse files

Ignore text rendering mode for type3 fonts

parent 61b4a485
Pipeline #381093 passed with stage
in 5 minutes and 17 seconds
......@@ -1434,6 +1434,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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment