diff options
author | Garret Fick <garret@ficksworkshop.com> | 2016-06-25 12:27:28 +0800 |
---|---|---|
committer | Garret Fick <garret@ficksworkshop.com> | 2016-06-25 12:27:28 +0800 |
commit | b01c4822b6da6b7be37becb73c58f60621f6366f (patch) | |
tree | 69b9fc4502d66ea40300d5557de1701d3d96b875 /gerber/render/cairo_backend.py | |
parent | 265aec83f6152387514eea75ee60241d55f702fd (diff) | |
download | gerbonara-b01c4822b6da6b7be37becb73c58f60621f6366f.tar.gz gerbonara-b01c4822b6da6b7be37becb73c58f60621f6366f.tar.bz2 gerbonara-b01c4822b6da6b7be37becb73c58f60621f6366f.zip |
Render aperture macros with clear regions
Diffstat (limited to 'gerber/render/cairo_backend.py')
-rw-r--r-- | gerber/render/cairo_backend.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gerber/render/cairo_backend.py b/gerber/render/cairo_backend.py index 1d168ca..c1bd60c 100644 --- a/gerber/render/cairo_backend.py +++ b/gerber/render/cairo_backend.py @@ -191,8 +191,11 @@ class GerberCairoContext(GerberContext): self.ctx.stroke()
def _render_amgroup(self, amgroup, color):
+ self.ctx.push_group()
for primitive in amgroup.primitives:
self.render(primitive)
+ self.ctx.pop_group_to_source()
+ self.ctx.paint_with_alpha(1)
def _render_test_record(self, primitive, color):
self.ctx.select_font_face('monospace', cairo.FONT_SLANT_NORMAL, cairo.FONT_WEIGHT_NORMAL)
|