mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-06 04:09:47 +00:00
Merge pull request #606 from BradenM/fix/atext-font
Utilize font parameter in attachments/atext module.
This commit is contained in:
commit
0263a5683e
1 changed files with 2 additions and 2 deletions
|
@ -1162,11 +1162,11 @@ module atext(text, h=1, size=9, font="Courier", anchor="baseline", spin=0, orien
|
||||||
if (do_show) {
|
if (do_show) {
|
||||||
if (is_undef($color)) {
|
if (is_undef($color)) {
|
||||||
linear_extrude(height=h, center=true)
|
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) {
|
} else color($color) {
|
||||||
$color = undef;
|
$color = undef;
|
||||||
linear_extrude(height=h, center=true)
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue