-
Notifications
You must be signed in to change notification settings - Fork 0
/
font.yaml
218 lines (218 loc) · 4.31 KB
/
font.yaml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
# Geometry for each letter.
# I use YAML anchors to DRY up the code, especially since
# I might tweak this font at a later date.
---
A:
- &A1 # Left diagonal stroke
- [1.0, 1.5, 0.0]
- [0.0, 5.0, 0.0]
- &A2 # Right diagonal stroke
- [1.5, 2.0, 2.5]
- [5.0, 0.0, 5.0]
- &A3 # Crossbar. This overlaps the other shapes slightly
- [1.0, 2.0, 1.0]
- [1.0, 1.0, 2.0]
B:
- &B1 # Left stem
- [0.0, 0.0, 1.0]
- [5.0, 0.0, 5.0]
- &B2 # Top diagonal stroke (This B is angular, not curved)
- [1.0, 3.0, 1.0]
- [4.0, 2.5, 5.0]
- &B3 # Bottom diagonal stroke
- [1.0, 3.0, 1.0]
- [0.0, 1.5, 1.0]
- &B4 # Crossbar
- [1.0, 2.0, 1.0]
- [2.0, 2.0, 3.0]
C:
- &C1 # Top arm of the C (this C is boxy)
- [0.0, 3.0, 0.0]
- [4.0, 4.0, 5.0]
- &C2 # Left stem
- [0.0, 0.0, 1.0]
- [4.0, 1.0, 4.0]
- &C3 # Bottom arm of the C
- [0.0, 3.0, 0.0]
- [0.0, 0.0, 1.0]
D: # D is just like B without the crossbar
- *B1
- *B2
- *B3
E: # E is like a C with an extra bar in the middle
- *C1
- *C2
- *C3
- &E1 # Middle bar
- [1.0, 3.0, 1.0]
- [2.0, 2.0, 3.0]
F: # F is similar to an E with one less stroke.
- *C1
- *E1
- &F1 # The stem will be slightly longer than the one in the E
- [0.0, 0.0, 1.0]
- [4.0, 0.0, 4.0]
G: # G is similar to a C with an extra stem
- *C1
- *C2
- *C3
- &G1
- [3.0, 3.0, 2.0]
- [1.0, 3.0, 1.0]
H: # Two of three strokes are borrowed from B
- *B1 # Left Stem
- *B4 # Crossbar
- &H1 # Right Stem
- [3.0, 3.0, 2.0]
- [0.0, 5.0, 0.0]
I: # Borrow the two arms from the C. Add another stem in the middle
- *C1
- *C3
- &I1 # Vertical stem
- [1.0, 1.0, 2.0]
- [4.0, 1.0, 4.0]
J: # The top stroke is borrowed, everything else is new
- *C1
- &J1 # Right stem
- [3.0, 3.0, 2.0]
- [1.0, 4.0, 1.0]
- &J2 # Bottom bar
- [1.0, 3.0, 1.0]
- [0.0, 0.0, 1.0]
- &J3 # Left tail
- [0.0, 0.0, 1.0]
- [2.0, 0.0, 2.0]
K: # The left stem is the same as other letters
- *B1
- &K1 # Top diagonal stroke
- [2.0, 3.0, 1.0]
- [2.5, 5.0, 2.5]
- &K2 # Bottom diagonal stroke
- [1.0, 2.0, 2.0]
- [2.5, 0.0, 2.5]
L: # The left stem is a bit longer
- *C3
- &L1
- [0.0, 0.0, 1.0]
- [5.0, 1.0, 5.0]
M: # Two new mini diagonal strokes
- *B1
- *H1
- &M1
- [1.0, 1.5, 1.0]
- [4.0, 3.0, 5.0]
- &M2
- [1.5, 2.0, 1.5]
- [3.0, 4.0, 4.0]
N: # one new really skinny diagonal stroke
- *B1
- *H1
- &N1 # Don't worry, no swine flu here!
- [1.0, 2.0, 1.0]
- [4.0, 0.0, 5.0]
O: # O is a thief
- *C1 # Top
- *C2 # Left
- *C3 # Bottom
- *J1 # Right
P: # Two new diagonal strokes
- *B1
- &P1 # Top diagonal stroke
- [1.0, 3.0, 1.0]
- [4.0, 3.5, 5.0]
- &P2 # Bottom diagonal stroke
- [1.0, 3.0, 1.0]
- [2.0, 2.5, 3.0]
Q: # Q has a neat tail shape
- *C1 # Top
- &Q1 # Shorter right stem
- [0.0, 0.0, 1.0]
- [4.0, 1.0, 4.0]
- &Q2 # Shorter left stem
- [3.0, 3.0, 2.0]
- [2.0, 4.0, 2.0]
- &Q3 # Tail
- [1.0, 3.0, 1.0]
- [1.0, 0.0, 2.0]
R: # Like P with a tail
- *B1
- *P1
- *P2
- &R1 # tail
- [1.0, 2.0, 2.0]
- [2.0, 0.0, 2.0]
S: # All new strokes
- &S1 # Top arm
- [1.0, 3.0, 1.0]
- [4.0, 4.0, 5.0]
- &S2 # Left stem
- [0.0, 0.0, 1.0]
- [5.0, 3.0, 5.0]
- &S3 # Spine or bar?
- [0.0, 3.0, 0.0]
- [2.0, 2.0, 3.0]
- &S4 # Right stem
- [3.0, 3.0, 2.0]
- [0.0, 2.0, 0.0]
- &S5 # Bottom arm
- [0.0, 2.0, 0.0]
- [0.0, 0.0, 1.0]
T: # Longer stem
- *C1
- &T1
- [1.0, 1.0, 2.0]
- [4.0, 0.0, 4.0]
U: # Longer stems
- *C3
- &U1 # Left stem
- [1.0, 1.0, 0.0]
- [1.0, 5.0, 1.0]
- &U2 # Right stem
- [2.0, 2.0, 3.0]
- [5.0, 1.0, 5.0]
V: # Like an upside-down A without the crossbar.
- &V1 # Left diagonal stroke
- [0.0, 0.5, 1.0]
- [5.0, 0.0, 5.0]
- &V2 # Right diagonal stroke
- [2.5, 3.0, 1.5]
- [0.0, 5.0, 0.0]
W: # Like an upside-down M
- *B1
- *H1
- &W1
- [1.0, 1.5, 1.0]
- [0.0, 1.0, 1.0]
- &W2
- [1.5, 2.0, 1.5]
- [1.0, 0.0, 2.0]
X:
- &X1 # big diagonal stroke
- [0.0, 2.0, 1.0]
- [5.0, 0.0, 5.0]
- &X2 # Bottom left diagonal stroke
- [1.0, 1.5, 0.0]
- [0.0, 2.5, 0.0]
- &X3 # Top right stroke
- [2.5, 3.0, 1.5]
- [2.5, 5.0, 2.5]
Y:
- &Y1 # Top left diagonal stroke
- [0.0, 0.5, 1.0]
- [5.0, 3.0, 5.0]
- &Y2 # Top right diagonal stroke
- [2.5, 3.0, 1.5]
- [3.0, 5.0, 3.0]
- &Y3 # Stem
- [1.0, 1.0, 2.0]
- [3.0, 0.0, 3.0]
Z:
- *C1
- *C3
- &Z1 # Diagonal stroke
- [1.0, 3.0, 0.0]
- [1.0, 4.0, 1.0]
█: # Extra transform to fill in the entire block
- &BL1
- [0.0, 0.0, 3.0]
- [5.0, 0.0, 5.0]