changed font color to ETCHING,
changed font size to depend on tile size
This commit is contained in:
parent
dd8cb71e3a
commit
9cadd12635
|
@ -50,13 +50,15 @@ See also LBeam that can serve as compact BurnTest and FlexTest for testing flex
|
|||
def render(self):
|
||||
x, s = self.x, self.step
|
||||
t = self.thickness
|
||||
|
||||
fsize = 12.5 * self.x / 100 if self.x < 81 else 10
|
||||
|
||||
self.moveTo(t, t)
|
||||
|
||||
for cnt in range(self.pairs):
|
||||
|
||||
for i in range(4):
|
||||
self.text("%.3fmm" % self.burn, x/2, 2*t, align="center")
|
||||
self.text("%.3fmm" % self.burn, x/2, t, fontsize = fsize, align="center", color=Color.ETCHING)
|
||||
self.edges["f"](x)
|
||||
self.corner(90)
|
||||
self.burn += s
|
||||
|
@ -65,7 +67,7 @@ See also LBeam that can serve as compact BurnTest and FlexTest for testing flex
|
|||
|
||||
self.moveTo(x+2*t+self.spacing, -t)
|
||||
for i in range(4):
|
||||
self.text("%.3fmm" % self.burn, x/2, 2*t, align="center")
|
||||
self.text("%.3fmm" % self.burn, x/2, t, fontsize = fsize, align="center", color=Color.ETCHING)
|
||||
self.edges["F"](x)
|
||||
self.polyline(t, 90, t)
|
||||
self.burn += s
|
||||
|
|
Loading…
Reference in New Issue