-
Notifications
You must be signed in to change notification settings - Fork 3
/
sign-text-brim.scad
62 lines (46 loc) · 1.04 KB
/
sign-text-brim.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// OpenSCAD sign maker (text sign with brim)
//
// Inspried by script in description of
// BigClive's livestream from 2022-06-11.
//
//
// Select the font name from the list of available fonts:
// Menu: "Help" > "Font List"
//
//Text to render
text="Air";
//Font to use
//here: DayPosterBlack by Nick Curtis
//https://www.nicksfonts.com/
//https://www.dafont.com/nicks-fonts.d83
font="DayPosterBlack:style=Regular";
//Text size
size=60;
//Text spacing
space=1.0;
//Height of the sign body
h=20;
//Wall width
ww=2.4;
//Floor height (set to -1 for open base)
fl=2.4;
//Face height
fh=1.2;
//Play for fitting face
pl=0.2;
//Create face (true) or body (false)
face=false;
//brim width to hold letters together
brim=8;
///////////////////////////
$fn=60;
pf=0.01;
include <include/signmaker.scad>;
makesign(h=h, ww=ww, fl=fl, fh=fh, pl=pl, face=face) {
text(text, font=font, size=size, spacing=space);
}
if(!face) {
linear_extrude(fl-pf)
offset(delta=brim, chamfer=true)
text(text, font=font, size=size, spacing=space);
}