Issue #94 resolved

Text mirrored incorrectly in gerbers

Razen
repo owner created an issue

Mirror property not taken into account in gerber export

Comments (2)

  1. Razen reporter

    Fix in export plugin

    --- a/plugin/export/gerber/gerber.py    Wed Nov 13 13:33:58 2013 -0500
    +++ b/plugin/export/gerber/gerber.py    Wed Nov 13 17:28:18 2013 -0500
    @@ -149,7 +149,8 @@
       def _render_text(self, e, transform, side):
         size = e.properties["size"]
         w,h = e._font().textSize(e._evalvalue(), size)
    -    lines = e._font().genText(e._evalvalue(), size, e._transform)
    +    mirror = side or e.properties.get("mirror", False)
    +    lines = e._font().genText(e._evalvalue(), size, e._transform, mirror=mirror)
         fw = max(units.mm(0.1), e.properties.get("width", 0))
         for i in range(len(lines)/4):
           self._add_points(e.getLayer(side), ("C", fw), lines[i*4:(i*4)+4])
    
  2. Log in to comment