diff options
author | jaseg <git@jaseg.de> | 2024-07-07 21:42:10 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2024-07-07 21:42:10 +0200 |
commit | 1ee6b6587a0a0db1ef91284e9f4c413101520ba6 (patch) | |
tree | 189a60e1dc87446d32bbf62f9dfb2b79052ce444 /gerbonara/cad/primitives.py | |
parent | e98f3f3ace38060aaf90afc5d071200b254426dd (diff) | |
download | gerbonara-1ee6b6587a0a0db1ef91284e9f4c413101520ba6.tar.gz gerbonara-1ee6b6587a0a0db1ef91284e9f4c413101520ba6.tar.bz2 gerbonara-1ee6b6587a0a0db1ef91284e9f4c413101520ba6.zip |
protoboard: Add permanent breadboard rendering
Diffstat (limited to 'gerbonara/cad/primitives.py')
-rw-r--r-- | gerbonara/cad/primitives.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/cad/primitives.py b/gerbonara/cad/primitives.py index c659274..f581c38 100644 --- a/gerbonara/cad/primitives.py +++ b/gerbonara/cad/primitives.py @@ -322,7 +322,7 @@ class Text(Positioned): xs = [x for points in strokes for x, _y in points] ys = [y for points in strokes for _x, y in points] min_x, min_y, max_x, max_y = min(xs), min(ys), max(xs), max(ys) - h = (max_y - min_y) + h = self.font_size + self.stroke_width # (max_y - min_y) if self.h_align == 'left': x0 = 0 @@ -512,7 +512,7 @@ class THTPad(PadStack): @classmethod def circle(kls, drill_dia, dia, rotation=0, mask_expansion=0.0, paste_expansion=0.0, paste=True, plated=True, unit=MM): - pad = SMDStack.circle(dia, rotation, mask_expansion, paste_expansion, paste, unit=unit) + pad = SMDStack.circle(dia, mask_expansion, paste_expansion, paste, unit=unit) return kls(drill_dia, pad, plated=plated) @classmethod |