Merge pull request #606 from BradenM/fix/atext-font

Utilize font parameter in attachments/atext module.
This commit is contained in:
Revar Desmera 2021-07-10 15:11:26 -07:00 committed by GitHub
commit 0263a5683e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}
}
}