[poppler] poppler/CairoOutputDev.cc poppler/CairoOutputDev.h
Carlos Garcia Campos
carlosgc at kemper.freedesktop.org
Mon Jun 9 06:27:36 PDT 2008
poppler/CairoOutputDev.cc | 3 +++
poppler/CairoOutputDev.h | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 86b7e8a3bee74c5b89c451137cf9c2758ba6913f
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Sun Jun 8 18:00:05 2008 +0930
Ensure cairo renders Type 3 glyphs with only the fill color
diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc
index 57c3ac5..05fe1a8 100644
--- a/poppler/CairoOutputDev.cc
+++ b/poppler/CairoOutputDev.cc
@@ -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);
diff --git a/poppler/CairoOutputDev.h b/poppler/CairoOutputDev.h
index 5d2b658..f6f9e13 100644
--- a/poppler/CairoOutputDev.h
+++ b/poppler/CairoOutputDev.h
@@ -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;
More information about the poppler
mailing list