We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 621368c commit 28352deCopy full SHA for 28352de
InteractiveHtmlBom/ecad/kicad.py
@@ -138,6 +138,10 @@ def parse_text(self, d):
138
else:
139
height = d.GetHeight() * 1e-6
140
width = d.GetWidth() * 1e-6
141
+ if hasattr(d, "GetTextThickness"):
142
+ thickness = d.GetTextThickness() * 1e-6
143
+ else:
144
+ thickness = d.GetThickness() * 1e-6
145
if hasattr(d, "GetShownText"):
146
text = d.GetShownText()
147
@@ -156,7 +160,7 @@ def parse_text(self, d):
156
160
"height": height,
157
161
"width": width,
158
162
"horiz_justify": d.GetHorizJustify(),
159
- "thickness": d.GetThickness() * 1e-6,
163
+ "thickness": thickness,
164
"attr": attributes,
165
"angle": angle
166
}
0 commit comments