3dprint: Change button font

This commit is contained in:
2023-06-06 19:11:13 +02:00
parent 56b4a2bd7b
commit f1f7404f29

View File

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