key_width = 17.3; middle_key_width = 16.75; main_width = 272.5; middle_width = 54.6; numeric_width = 73.6; gap_width = (148.5-(middle_width+numeric_width))/2; height = 4; spacing1 = (main_width-(key_width*14))/13; namelist = ["alice", "bob", "charlie"]; for(i=[0:13]) { difference() { translate([0.5*key_width+i*key_width+i*spacing1,0]) square([key_width,height],center=true); if (i < len(namelist)) { translate([0.5*key_width+i*key_width+i*spacing1,0]) text(namelist[i], 3, font="edumaker", halign="center", valign="center"); } } }