diff options
author | Tor Andersson <tor@ghostscript.com> | 2004-12-02 13:56:12 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2004-12-02 13:56:12 +0100 |
commit | 1dfbba0a2142c0786714c1d476fc2736044a02ac (patch) | |
tree | 6f07352c4919407aff150d9cb89e2d7415e7f392 /mupdf/build.c | |
parent | 5c335f9337724f61c14af143b18f0891c58dbacd (diff) | |
download | mupdf-1dfbba0a2142c0786714c1d476fc2736044a02ac.tar.xz |
text fill then clip render mode
Diffstat (limited to 'mupdf/build.c')
-rw-r--r-- | mupdf/build.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/mupdf/build.c b/mupdf/build.c index 2010ca20..e9bb6d67 100644 --- a/mupdf/build.c +++ b/mupdf/build.c @@ -536,7 +536,7 @@ pdf_showpath(pdf_csi *csi, if (dofill && dostroke) { fpath = csi->path; - error = fz_clonepath(&spath, fpath); + error = fz_clonepathnode(&spath, fpath); if (error) return error; } else @@ -588,8 +588,6 @@ pdf_flushtext(pdf_csi *csi) if (csi->text) { - - /* invisible */ switch (csi->textmode) { case 0: /* fill */ @@ -609,6 +607,17 @@ pdf_flushtext(pdf_csi *csi) case 4: /* fill + clip */ case 5: /* stroke + clip */ case 6: /* stroke + fill + clip */ + { + fz_textnode *temp; + error = fz_clonetextnode(&temp, csi->text); + if (error) + return error; + error = pdf_addfillshape(gstate, (fz_node*)temp); + if (error) + return error; + } + /* fall through */ + case 7: /* invisible clip */ if (!csi->textclip) { |