summaryrefslogtreecommitdiff
path: root/pdf/pdf_interpret.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2011-07-29 19:11:53 +0100
committerRobin Watts <Robin.Watts@artifex.com>2011-08-01 14:11:53 +0100
commit5a46065a0df691a79b75f5e61e34e344afd5349a (patch)
tree3a4f175c73fbb945a4df3d1abcd822a5571641b5 /pdf/pdf_interpret.c
parent684cd3ebbbeaffbf416a09aad6af2cb160cec6bb (diff)
downloadmupdf-5a46065a0df691a79b75f5e61e34e344afd5349a.tar.xz
Add support for colored Type3 glyphs (ones that use d0).
Detect the d0 or d1 operators by writing a bit to the new device flags word. This can then be checked by the Type3 code to create the appropriate backing pixmap. In order to know what the appropriate backing pixmap is, we pass an additional colorspace into the glyph rendering code.
Diffstat (limited to 'pdf/pdf_interpret.c')
-rw-r--r--pdf/pdf_interpret.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pdf/pdf_interpret.c b/pdf/pdf_interpret.c
index 8dcd4f80..f10f6c83 100644
--- a/pdf/pdf_interpret.c
+++ b/pdf/pdf_interpret.c
@@ -1776,10 +1776,12 @@ static void pdf_run_d(pdf_csi *csi)
static void pdf_run_d0(pdf_csi *csi)
{
+ csi->dev->flags |= FZ_CHARPROC_COLOR;
}
static void pdf_run_d1(pdf_csi *csi)
{
+ csi->dev->flags |= FZ_CHARPROC_MASK;
}
static void pdf_run_f(pdf_csi *csi)