Commit 86b7e8a3 authored by Adrian Johnson's avatar Adrian Johnson Committed by Carlos Garcia Campos

Ensure cairo renders Type 3 glyphs with only the fill color

parent 99e2d957
......@@ -616,10 +616,13 @@ GBool CairoOutputDev::beginType3Char(GfxState *state, double x, double y,
cairo_set_matrix(cairo_shape, &orig_matrix);
cairo_transform(cairo_shape, &matrix);
}
old_stroke_pattern = stroke_pattern;
stroke_pattern = fill_pattern;
return gFalse;
}
void CairoOutputDev::endType3Char(GfxState *state) {
stroke_pattern = old_stroke_pattern;
cairo_restore (cairo);
if (cairo_shape) {
cairo_restore (cairo_shape);
......
......@@ -199,7 +199,7 @@ protected:
void doPath(cairo_t *cairo, GfxState *state, GfxPath *path);
GfxRGB fill_color, stroke_color;
cairo_pattern_t *fill_pattern, *stroke_pattern;
cairo_pattern_t *fill_pattern, *stroke_pattern, *old_stroke_pattern;
double fill_opacity;
double stroke_opacity;
CairoFont *currentFont;
......
Markdown is supported
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