3dprint: Change button font
This commit is contained in:
@@ -14,7 +14,7 @@ shaft_length = 5;
|
||||
|
||||
print_spacing = 10;
|
||||
|
||||
module button(label, width, height, size=4) {
|
||||
module button(label, width, height, size=3) {
|
||||
difference() {
|
||||
cube([width, height, button_thickness]);
|
||||
translate([0, 0, epsilon])
|
||||
@@ -31,10 +31,10 @@ module button(label, width, height, size=4) {
|
||||
|
||||
}
|
||||
|
||||
module button_text(label, width, height, thickness, size=4) {
|
||||
module button_text(label, width, height, thickness, size=3) {
|
||||
translate([width/2, height/2, button_thickness-thickness])
|
||||
linear_extrude(thickness)
|
||||
text(label, font="Bitstream Vera Sans Mono:style=Bold",
|
||||
text(label, font="Orbitron:style=Black",
|
||||
halign="center", valign="center", size=size);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user