]> git.parisson.com Git - pdf.js.git/commitdiff
Placeholder even-odd fill
authorChris Jones <jones.chris.g@gmail.com>
Tue, 10 May 2011 02:08:21 +0000 (21:08 -0500)
committerChris Jones <jones.chris.g@gmail.com>
Tue, 10 May 2011 02:08:21 +0000 (21:08 -0500)
pdf.js

diff --git a/pdf.js b/pdf.js
index 23784ac7a0058e61959d8bb77021e259e7a0cd4a..b967f177f351e4fa54d9d6d48e26abfffa14176e 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -1592,6 +1592,7 @@ var Interpreter = (function() {
             re: gfx.rectangle,
             S: gfx.stroke,
             f: gfx.fill,
+            "f*": gfx.eoFill,
             B: gfx.fillStroke,
             b: gfx.closeFillStroke,
             n: gfx.endPath,
@@ -1740,6 +1741,9 @@ var EchoGraphics = (function() {
         fill: function() {
             this.printdentln("f");
         },
+        eoFill: function() {
+            this.printdentln("f*");
+        },
         fillStroke: function() {
             this.printdentln("B");
         },
@@ -1951,6 +1955,10 @@ var CanvasGraphics = (function() {
             this.ctx.fill();
             this.consumePath();
         },
+        eoFill: function() {
+            // TODO: <canvas> needs to support even-odd winding rule
+            this.fill();
+        },
         fillStroke: function() {
             this.ctx.fill();
             this.ctx.stroke();