fix(attachments): utilize font parameter in atext

This commit is contained in:
Braden Mars 2021-07-08 23:30:37 -05:00
parent b0bccfeb44
commit ae61b1c4b1
No known key found for this signature in database
GPG key ID: 8F70A178C7C9B707

View file

@ -1162,11 +1162,11 @@ module atext(text, h=1, size=9, font="Courier", anchor="baseline", spin=0, orien
if (do_show) {
if (is_undef($color)) {
linear_extrude(height=h, center=true)
text(text=text, size=size, halign=ha, valign=va);
text(text=text, size=size, halign=ha, valign=va, font=font);
} else color($color) {
$color = undef;
linear_extrude(height=h, center=true)
text(text=text, size=size, halign=ha, valign=va);
text(text=text, size=size, halign=ha, valign=va, font=font);
}
}
}