annotate README.md @ 2:fe29ace8155e

added magnet attachment option
author ark
date 2026-11-03 10:08 +0100
parents aa23650954d6
children f5ff6f1a5454
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
1 # House number
b5a96b547b01 initial public version
ark
parents:
diff changeset
2
2
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
3 3D-printed house numbers, or any other text, to fix to a wall. Each glyph
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
4 is a separate flat piece with two countersunk screw holes. Distance washers
2
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
5 behind the holes keep it off the wall and take up unevenness. Instead of
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
6 screws, magnets pressed into the washers can hold the glyph. The glyphs
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
7 print face down. A two-colour look with an outline band is possible on a
b5a96b547b01 initial public version
ark
parents:
diff changeset
8 single-colour printer by changing filament once.
b5a96b547b01 initial public version
ark
parents:
diff changeset
9
b5a96b547b01 initial public version
ark
parents:
diff changeset
10 The work is split in three steps:
b5a96b547b01 initial public version
ark
parents:
diff changeset
11
b5a96b547b01 initial public version
ark
parents:
diff changeset
12 1. `make_preview.py` renders the text in every installed font, to choose
b5a96b547b01 initial public version
ark
parents:
diff changeset
13 one.
b5a96b547b01 initial public version
ark
parents:
diff changeset
14 2. `make_glyphs.py` turns the text in the chosen font into glyph outlines,
b5a96b547b01 initial public version
ark
parents:
diff changeset
15 works out the largest printable size and places the screw holes.
b5a96b547b01 initial public version
ark
parents:
diff changeset
16 3. `main.scad` builds the printable parts in OpenSCAD, and a drilling
b5a96b547b01 initial public version
ark
parents:
diff changeset
17 template, which `make_template.py` splits into printable pages.
b5a96b547b01 initial public version
ark
parents:
diff changeset
18
b5a96b547b01 initial public version
ark
parents:
diff changeset
19 ## Requirements
b5a96b547b01 initial public version
ark
parents:
diff changeset
20
b5a96b547b01 initial public version
ark
parents:
diff changeset
21 - Python 3 with fontTools, Pillow and numpy. `make_template.py` needs only
b5a96b547b01 initial public version
ark
parents:
diff changeset
22 the standard library.
b5a96b547b01 initial public version
ark
parents:
diff changeset
23 - fontconfig's `fc-list`, which the scripts use to find fonts.
b5a96b547b01 initial public version
ark
parents:
diff changeset
24 - An OpenSCAD development snapshot. The model uses features newer than the
b5a96b547b01 initial public version
ark
parents:
diff changeset
25 2021.01 release.
b5a96b547b01 initial public version
ark
parents:
diff changeset
26
b5a96b547b01 initial public version
ark
parents:
diff changeset
27 ## Choosing a font
b5a96b547b01 initial public version
ark
parents:
diff changeset
28
b5a96b547b01 initial public version
ark
parents:
diff changeset
29 ./make_preview.py --text 24
b5a96b547b01 initial public version
ark
parents:
diff changeset
30
b5a96b547b01 initial public version
ark
parents:
diff changeset
31 writes one PNG per font into `preview/`. Each image shows the text as it
b5a96b547b01 initial public version
ark
parents:
diff changeset
32 will be printed, drawn from the same outlines as the model. The caption
b5a96b547b01 initial public version
ark
parents:
diff changeset
33 gives family, style, PostScript name, weight, classification and the
b5a96b547b01 initial public version
ark
parents:
diff changeset
34 largest printable size. The file name is the font's PostScript name, so the
b5a96b547b01 initial public version
ark
parents:
diff changeset
35 image can be passed to `make_glyphs.py` as it is. Named instances of
b5a96b547b01 initial public version
ark
parents:
diff changeset
36 variable fonts, such as the weights of SF Pro, count as separate fonts.
b5a96b547b01 initial public version
ark
parents:
diff changeset
37 Fonts that lack a character of the text are skipped.
b5a96b547b01 initial public version
ark
parents:
diff changeset
38
b5a96b547b01 initial public version
ark
parents:
diff changeset
39 On the development machine, all installed fonts took about 2 minutes and
b5a96b547b01 initial public version
ark
parents:
diff changeset
40 244 MB. Filters narrow the selection:
b5a96b547b01 initial public version
ark
parents:
diff changeset
41
b5a96b547b01 initial public version
ark
parents:
diff changeset
42 ./make_preview.py --text 24 --family 'helvetica|futura' --weight-min 600
b5a96b547b01 initial public version
ark
parents:
diff changeset
43 ./make_preview.py --text 24 --class serif --no-italic
b5a96b547b01 initial public version
ark
parents:
diff changeset
44
b5a96b547b01 initial public version
ark
parents:
diff changeset
45 `--family` and `--name` take regular expressions, matched against the
b5a96b547b01 initial public version
ark
parents:
diff changeset
46 family and the PostScript name. `--italic`, `--mono` and their `--no-`
b5a96b547b01 initial public version
ark
parents:
diff changeset
47 forms select by style. `--class serif` or `--class sans` keeps only fonts
b5a96b547b01 initial public version
ark
parents:
diff changeset
48 that classify themselves that way; many fonts carry no classification and
b5a96b547b01 initial public version
ark
parents:
diff changeset
49 appear only without this filter. `--list` prints the matching fonts
b5a96b547b01 initial public version
ark
parents:
diff changeset
50 without rendering.
b5a96b547b01 initial public version
ark
parents:
diff changeset
51
b5a96b547b01 initial public version
ark
parents:
diff changeset
52 To see the two-colour look, give the band width in mm:
b5a96b547b01 initial public version
ark
parents:
diff changeset
53
b5a96b547b01 initial public version
ark
parents:
diff changeset
54 ./make_preview.py --text 24 --band 4 --fill '#202020' --outline '#c03030' --background '#e8e4dc'
b5a96b547b01 initial public version
ark
parents:
diff changeset
55
b5a96b547b01 initial public version
ark
parents:
diff changeset
56 The band is scaled to each font's largest print size in the single-glyph
b5a96b547b01 initial public version
ark
parents:
diff changeset
57 layout, or in the whole-text layout with `--layout text`.
b5a96b547b01 initial public version
ark
parents:
diff changeset
58
b5a96b547b01 initial public version
ark
parents:
diff changeset
59 ## Glyph data
b5a96b547b01 initial public version
ark
parents:
diff changeset
60
b5a96b547b01 initial public version
ark
parents:
diff changeset
61 ./make_glyphs.py preview/Futura-Bold.png 24
b5a96b547b01 initial public version
ark
parents:
diff changeset
62 ./make_glyphs.py Futura-Bold 24
b5a96b547b01 initial public version
ark
parents:
diff changeset
63
b5a96b547b01 initial public version
ark
parents:
diff changeset
64 The font is given by PostScript name or preview image. The script writes
b5a96b547b01 initial public version
ark
parents:
diff changeset
65 `glyphs.scad`, which `main.scad` includes, and a directory
b5a96b547b01 initial public version
ark
parents:
diff changeset
66 `generated/<font>_<text>/` with an SVG outline and a check image per glyph.
b5a96b547b01 initial public version
ark
parents:
diff changeset
67 It prints the largest sizes and the hole positions; warnings go to standard
b5a96b547b01 initial public version
ark
parents:
diff changeset
68 error.
b5a96b547b01 initial public version
ark
parents:
diff changeset
69
b5a96b547b01 initial public version
ark
parents:
diff changeset
70 ### Size
b5a96b547b01 initial public version
ark
parents:
diff changeset
71
b5a96b547b01 initial public version
ark
parents:
diff changeset
72 Size is the height of the tallest glyph, in mm. The usable area is the bed
b5a96b547b01 initial public version
ark
parents:
diff changeset
73 (300 mm) minus its margin (10 mm) and the frame of the two-colour print:
b5a96b547b01 initial public version
ark
parents:
diff changeset
74 280 mm minus 4 line widths. Two layouts fit differently:
b5a96b547b01 initial public version
ark
parents:
diff changeset
75
b5a96b547b01 initial public version
ark
parents:
diff changeset
76 - text: the whole text in one print, spaced as the font spaces it.
b5a96b547b01 initial public version
ark
parents:
diff changeset
77 - glyph: one glyph per print, all glyphs at the same size.
b5a96b547b01 initial public version
ark
parents:
diff changeset
78
b5a96b547b01 initial public version
ark
parents:
diff changeset
79 For both, the script reports the largest size unrotated and at the best
b5a96b547b01 initial public version
ark
parents:
diff changeset
80 angle between 0 and 90 degrees. In Helvetica Bold, "24" reaches 189 mm in
b5a96b547b01 initial public version
ark
parents:
diff changeset
81 the text layout and 278 mm per glyph; rotation gains nothing. In SF Extra
b5a96b547b01 initial public version
ark
parents:
diff changeset
82 Compressed Thin, turning the glyphs by 45 degrees raises the size per glyph
b5a96b547b01 initial public version
ark
parents:
diff changeset
83 from 278 to 325 mm.
b5a96b547b01 initial public version
ark
parents:
diff changeset
84
b5a96b547b01 initial public version
ark
parents:
diff changeset
85 The holes are placed for one size, by default the largest unrotated size in
b5a96b547b01 initial public version
ark
parents:
diff changeset
86 the glyph layout. `--layout`, `--angle` (-1 for the best) and `--size`
b5a96b547b01 initial public version
ark
parents:
diff changeset
87 choose another. OpenSCAD can scale to any size later; it then checks that
b5a96b547b01 initial public version
ark
parents:
diff changeset
88 the screw heads still fit.
b5a96b547b01 initial public version
ark
parents:
diff changeset
89
b5a96b547b01 initial public version
ark
parents:
diff changeset
90 ### Screw holes
b5a96b547b01 initial public version
ark
parents:
diff changeset
91
b5a96b547b01 initial public version
ark
parents:
diff changeset
92 Each glyph gets two holes, one near its upper and one near its lower end:
b5a96b547b01 initial public version
ark
parents:
diff changeset
93
b5a96b547b01 initial public version
ark
parents:
diff changeset
94 1. Only points where the screw head (8 mm, `--head-d`) plus a wall of 2
b5a96b547b01 initial public version
ark
parents:
diff changeset
95 line widths (`--wall-lines`) fits inside the glyph are considered.
b5a96b547b01 initial public version
ark
parents:
diff changeset
96 2. The glyph's main axis is found from its inked area. It follows the slant
b5a96b547b01 initial public version
ark
parents:
diff changeset
97 of italic and script fonts and turns sideways for wide glyphs.
b5a96b547b01 initial public version
ark
parents:
diff changeset
98 `--vertical-axis` forces it upright.
b5a96b547b01 initial public version
ark
parents:
diff changeset
99 3. Along the axis, the holes aim at 85% and 15% of the glyph length
b5a96b547b01 initial public version
ark
parents:
diff changeset
100 (`--target`). Distance from the axis is penalised (`--side-weight`);
b5a96b547b01 initial public version
ark
parents:
diff changeset
101 sitting in the middle of the stroke is rewarded (`--centre-weight`).
b5a96b547b01 initial public version
ark
parents:
diff changeset
102 4. Where no point has room for the head, the hole goes to the thickest
b5a96b547b01 initial public version
ark
parents:
diff changeset
103 point of that half, and the script warns.
b5a96b547b01 initial public version
ark
parents:
diff changeset
104
2
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
105 For magnets, pass the magnet diameter as `--head-d`, so the holes go where
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
106 the magnet plus the wall fits.
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
107
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
108 The check images show the glyph in grey, the area with room for the head in
b5a96b547b01 initial public version
ark
parents:
diff changeset
109 green, the axis in blue and the holes in red, orange where the head does not
b5a96b547b01 initial public version
ark
parents:
diff changeset
110 fit.
b5a96b547b01 initial public version
ark
parents:
diff changeset
111
b5a96b547b01 initial public version
ark
parents:
diff changeset
112 ### Glyphs of several parts
b5a96b547b01 initial public version
ark
parents:
diff changeset
113
b5a96b547b01 initial public version
ark
parents:
diff changeset
114 Glyphs such as "i", "รค" or "%" consist of separate parts. The script
b5a96b547b01 initial public version
ark
parents:
diff changeset
115 reports them and works out a backing that connects them, see below. A hole
b5a96b547b01 initial public version
ark
parents:
diff changeset
116 can land in a separate part when the target position lies there, such as
b5a96b547b01 initial public version
ark
parents:
diff changeset
117 the dot of "i".
b5a96b547b01 initial public version
ark
parents:
diff changeset
118
b5a96b547b01 initial public version
ark
parents:
diff changeset
119 ### Fonts with overlapping outlines
b5a96b547b01 initial public version
ark
parents:
diff changeset
120
b5a96b547b01 initial public version
ark
parents:
diff changeset
121 Many fonts, variable fonts in particular, draw glyphs from overlapping or
b5a96b547b01 initial public version
ark
parents:
diff changeset
122 self-crossing contours. OpenSCAD's SVG import would turn the overlaps into
b5a96b547b01 initial public version
ark
parents:
diff changeset
123 holes. The script splits and groups the contours so the imported shape
b5a96b547b01 initial public version
ark
parents:
diff changeset
124 matches the font, and compares the result with the font's own filling. Both
b5a96b547b01 initial public version
ark
parents:
diff changeset
125 scripts report a difference.
b5a96b547b01 initial public version
ark
parents:
diff changeset
126
b5a96b547b01 initial public version
ark
parents:
diff changeset
127 ## The model
b5a96b547b01 initial public version
ark
parents:
diff changeset
128
b5a96b547b01 initial public version
ark
parents:
diff changeset
129 Open `main.scad` in OpenSCAD and set the parameters in the customizer. The
b5a96b547b01 initial public version
ark
parents:
diff changeset
130 console shows the size, thicknesses, warnings and a file name for the
b5a96b547b01 initial public version
ark
parents:
diff changeset
131 export.
b5a96b547b01 initial public version
ark
parents:
diff changeset
132
b5a96b547b01 initial public version
ark
parents:
diff changeset
133 ### Parts
b5a96b547b01 initial public version
ark
parents:
diff changeset
134
b5a96b547b01 initial public version
ark
parents:
diff changeset
135 - `all`: the glyphs as they hang on the wall, with the washers behind them.
b5a96b547b01 initial public version
ark
parents:
diff changeset
136 - `body`: the glyph in print orientation, face on the bed. In single-colour
b5a96b547b01 initial public version
ark
parents:
diff changeset
137 mode this is the whole print.
b5a96b547b01 initial public version
ark
parents:
diff changeset
138 - `decal`: the outline band of the two-colour print.
2
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
139 - `washer`: one distance washer. Make copies in the slicer. With magnets,
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
140 print one first to test the fit.
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
141 - `template`: the drilling template, 2D.
b5a96b547b01 initial public version
ark
parents:
diff changeset
142
b5a96b547b01 initial public version
ark
parents:
diff changeset
143 ### Layout and size
b5a96b547b01 initial public version
ark
parents:
diff changeset
144
b5a96b547b01 initial public version
ark
parents:
diff changeset
145 `layout` chooses between the whole text and one glyph per print.
b5a96b547b01 initial public version
ark
parents:
diff changeset
146 `glyph_index` picks the glyph, counted from 0 without spaces. `size` 0 uses
b5a96b547b01 initial public version
ark
parents:
diff changeset
147 the largest size that fits, `angle` -1 the best angle. `bed_size` and
b5a96b547b01 initial public version
ark
parents:
diff changeset
148 `bed_margin` describe the printer.
b5a96b547b01 initial public version
ark
parents:
diff changeset
149
b5a96b547b01 initial public version
ark
parents:
diff changeset
150 ### Glyph
b5a96b547b01 initial public version
ark
parents:
diff changeset
151
b5a96b547b01 initial public version
ark
parents:
diff changeset
152 `glyph_layers` sets the thickness, 6 layers by default: 1.2 mm at 0.2 mm
b5a96b547b01 initial public version
ark
parents:
diff changeset
153 layers. `backing` adds `backing_layers` (4 by default) behind the glyph,
b5a96b547b01 initial public version
ark
parents:
diff changeset
154 covering its outline. For glyphs of several parts the backing is the outline
b5a96b547b01 initial public version
ark
parents:
diff changeset
155 grown and shrunk back, so the parts join; where that does not work, it fills
b5a96b547b01 initial public version
ark
parents:
diff changeset
156 the convex hull. The gaps between parts are bridged and may need supports.
b5a96b547b01 initial public version
ark
parents:
diff changeset
157
b5a96b547b01 initial public version
ark
parents:
diff changeset
158 ### Screws
b5a96b547b01 initial public version
ark
parents:
diff changeset
159
b5a96b547b01 initial public version
ark
parents:
diff changeset
160 `screw_d` (4 mm) and `head_d` (8 mm) set the hole and the countersink, each
b5a96b547b01 initial public version
ark
parents:
diff changeset
161 widened by `clearance` on both sides. The countersink is 90 degrees and
b5a96b547b01 initial public version
ark
parents:
diff changeset
162 opens towards the bed. With thin glyphs it is deeper than the glyph: at the
b5a96b547b01 initial public version
ark
parents:
diff changeset
163 defaults 2 mm against 1.2 mm. The washer then continues the cone.
b5a96b547b01 initial public version
ark
parents:
diff changeset
164
2
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
165 `fit_wall_lines` (2) is the material required around the screw head, or
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
166 around the magnet, in line widths. Where a hole position from
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
167 `glyphs.scad` has less room at the print size, the console shows a warning.
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
168
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
169 ### Magnets
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
170
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
171 With `attachment` set to `magnet`, the glyph has no holes. Each washer
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
172 holds a magnet in a pocket at its wall end instead.
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
173
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
174 `magnet_d` and `magnet_h` set the pocket diameter and depth in steps of
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
175 0.05 mm. They are used as given, without `clearance`, so the press fit can
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
176 be tuned directly. Print a single washer to test the fit before printing
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
177 the glyphs. An open pocket of the magnet's height leaves the magnet flush
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
178 with the washer end.
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
179
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
180 `seal_magnets` closes each pocket with two layers. The pocket depth is
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
181 rounded up to whole layers, with a warning. The console gives the height
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
182 and layer number after which to pause the print. Insert the magnets in the
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
183 pause, then let the print finish over them.
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
184
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
185 ### Washers
b5a96b547b01 initial public version
ark
parents:
diff changeset
186
b5a96b547b01 initial public version
ark
parents:
diff changeset
187 The washer wall is `washer_wall_lines` line widths around the hole, 8 by
2
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
188 default, around the screw hole or the magnet pocket. `washer_height`
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
189 defaults to 10 mm and is rounded to whole layers. It is raised, with a
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
190 warning, to the part of the countersink or the magnet pocket inside the
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
191 washer plus 4 layers. A washer for screws prints with the glyph side up, a
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
192 washer for magnets with the pocket up. A separate magnet washer is glued
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
193 to the back of the glyph.
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
194
b5a96b547b01 initial public version
ark
parents:
diff changeset
195 With `washers_on_body`, the washers are part of the body instead, standing
2
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
196 on the glyph's back, with the magnet pockets at their top. Where a washer
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
197 is wider than the glyph at that point, it is cut back to the outline so it
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
198 does not overhang, and a warning is shown.
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
199
b5a96b547b01 initial public version
ark
parents:
diff changeset
200 ### Two-colour print
b5a96b547b01 initial public version
ark
parents:
diff changeset
201
b5a96b547b01 initial public version
ark
parents:
diff changeset
202 With `two_colour`, the glyph is split into a body and a decal:
b5a96b547b01 initial public version
ark
parents:
diff changeset
203
b5a96b547b01 initial public version
ark
parents:
diff changeset
204 - The decal is a band of `band_width` (4 mm) along the glyph outline, two
b5a96b547b01 initial public version
ark
parents:
diff changeset
205 layers thick.
b5a96b547b01 initial public version
ark
parents:
diff changeset
206 - The body leaves out the band plus one line width, so the nozzle does not
b5a96b547b01 initial public version
ark
parents:
diff changeset
207 touch the printed decal.
b5a96b547b01 initial public version
ark
parents:
diff changeset
208 - Both contain the same frame, one layer high and one line width wide,
b5a96b547b01 initial public version
ark
parents:
diff changeset
209 around the glyphs. It makes the slicer place both parts in the same spot.
b5a96b547b01 initial public version
ark
parents:
diff changeset
210
b5a96b547b01 initial public version
ark
parents:
diff changeset
211 To print:
b5a96b547b01 initial public version
ark
parents:
diff changeset
212
1
aa23650954d6 doc: added reminder about z-hop in slicer
ark
parents: 0
diff changeset
213 1. Slice decal and body with the same settings, but add a Z-hop to the body.
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
214 2. Print the decal.
b5a96b547b01 initial public version
ark
parents:
diff changeset
215 3. Change filament. Remove the skirt, if any, and the frame.
b5a96b547b01 initial public version
ark
parents:
diff changeset
216 4. Print the body on top.
b5a96b547b01 initial public version
ark
parents:
diff changeset
217
b5a96b547b01 initial public version
ark
parents:
diff changeset
218 Where a stroke is too narrow to leave body material between the bands, the
b5a96b547b01 initial public version
ark
parents:
diff changeset
219 face shows only the decal colour.
b5a96b547b01 initial public version
ark
parents:
diff changeset
220
b5a96b547b01 initial public version
ark
parents:
diff changeset
221 ### Export
b5a96b547b01 initial public version
ark
parents:
diff changeset
222
b5a96b547b01 initial public version
ark
parents:
diff changeset
223 Render (F6) and export the 3D parts as STL. The file name echoed in the
b5a96b547b01 initial public version
ark
parents:
diff changeset
224 console carries font, text, glyph, options, size, angle and print settings,
b5a96b547b01 initial public version
ark
parents:
diff changeset
225 for example
b5a96b547b01 initial public version
ark
parents:
diff changeset
226
b5a96b547b01 initial public version
ark
parents:
diff changeset
227 house_number_body_Futura-Bold_24_g0_2c_cs_s2780a0t6_lw40lh20.stl
b5a96b547b01 initial public version
ark
parents:
diff changeset
228
b5a96b547b01 initial public version
ark
parents:
diff changeset
229 ## Drilling template
b5a96b547b01 initial public version
ark
parents:
diff changeset
230
b5a96b547b01 initial public version
ark
parents:
diff changeset
231 The holes do not line up with each other, so a full-size template shows
b5a96b547b01 initial public version
ark
parents:
diff changeset
232 where to drill. Set `part` to `template`, render and export as SVG. The
b5a96b547b01 initial public version
ark
parents:
diff changeset
233 template uses the same size as the print and shows:
b5a96b547b01 initial public version
ark
parents:
diff changeset
234
b5a96b547b01 initial public version
ark
parents:
diff changeset
235 - the glyph outlines where they hang on the wall, spaced as the font spaces
b5a96b547b01 initial public version
ark
parents:
diff changeset
236 them, also when the glyphs are printed one at a time;
2
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
237 - a circle of the hole or magnet diameter at each hole, with a cross
fe29ace8155e added magnet attachment option
ark
parents: 1
diff changeset
238 reaching past the washer;
0
b5a96b547b01 initial public version
ark
parents:
diff changeset
239 - a level line along the baseline;
b5a96b547b01 initial public version
ark
parents:
diff changeset
240 - a 100 mm scale bar with 10 mm ticks.
b5a96b547b01 initial public version
ark
parents:
diff changeset
241
b5a96b547b01 initial public version
ark
parents:
diff changeset
242 Then
b5a96b547b01 initial public version
ark
parents:
diff changeset
243
b5a96b547b01 initial public version
ark
parents:
diff changeset
244 ./make_template.py house_number_template_Futura-Bold_24_s2780_lw40lh20.svg
b5a96b547b01 initial public version
ark
parents:
diff changeset
245
b5a96b547b01 initial public version
ark
parents:
diff changeset
246 writes a PDF of the same name, split over A4 pages, portrait or landscape,
b5a96b547b01 initial public version
ark
parents:
diff changeset
247 whichever needs fewer. Print it at 100% and check the scale bar.
b5a96b547b01 initial public version
ark
parents:
diff changeset
248 Neighbouring pages overlap by 10 mm. A dashed line with crosses every 50 mm
b5a96b547b01 initial public version
ark
parents:
diff changeset
249 runs through the middle of each overlap. Trim one sheet along the line, lay
b5a96b547b01 initial public version
ark
parents:
diff changeset
250 it over its neighbour so line and crosses match, and tape it. Each page
b5a96b547b01 initial public version
ark
parents:
diff changeset
251 names its row and column in the bottom margin.
b5a96b547b01 initial public version
ark
parents:
diff changeset
252
b5a96b547b01 initial public version
ark
parents:
diff changeset
253 `--paper` (a4, a3, letter, legal), `--margin` (unprintable edge, 6 mm) and
b5a96b547b01 initial public version
ark
parents:
diff changeset
254 `--overlap` change the page layout.
b5a96b547b01 initial public version
ark
parents:
diff changeset
255
b5a96b547b01 initial public version
ark
parents:
diff changeset
256 ## Files
b5a96b547b01 initial public version
ark
parents:
diff changeset
257
b5a96b547b01 initial public version
ark
parents:
diff changeset
258 - `make_preview.py`, `make_glyphs.py`, `make_template.py`: the scripts.
b5a96b547b01 initial public version
ark
parents:
diff changeset
259 Each lists its options with `--help`.
b5a96b547b01 initial public version
ark
parents:
diff changeset
260 - `fontlib.py`: code shared by the first two.
b5a96b547b01 initial public version
ark
parents:
diff changeset
261 - `main.scad`: the model.
b5a96b547b01 initial public version
ark
parents:
diff changeset
262 - `glyphs.scad`, `generated/`: written by `make_glyphs.py`.
b5a96b547b01 initial public version
ark
parents:
diff changeset
263 - `preview/`: written by `make_preview.py`.