-
Notifications
You must be signed in to change notification settings - Fork 0
/
.type_tools
executable file
·309 lines (261 loc) · 6.62 KB
/
.type_tools
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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
#!/usr/bin/env bash
# Install font development software on a new machine
# This avoids using homebrew as much as possible, as I don't
# like it's opacity. However, for pkg-config, man I don't
# want to jump through that many GNU hoops, so I'm being
# lazy. Don't tell my students.
# If you want sfntly-py to work, you need to install the Java JDK
# some tricks from ~/.osx — https://mths.be/osx
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo -H` time stamp until `.osx` has finished
while true; do sudo -H -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# install pip
echo ""
echo "Installing pip"
curl https://bootstrap.pypa.io/get-pip.py | sudo -H python
# install virtualenv
echo ""
echo "Installing virtualenv"
sudo -H pip install virtualenv
# install Hombebrew, sigh
echo ""
echo "Installing homebrew"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# install pkg-config to make freetype, harfbuzz, and ttfautohint happy
echo ""
echo "Install pkg-config"
brew install pkg-config
# install automake to make freetype, harfbuzz, and ttfautohint happy
echo ""
echo "Install automake"
brew install automake
# install autoconf to make freetype, harfbuzz, and ttfautohint happy
echo ""
echo "Install autoconf"
brew install autoconf
# install numpy
echo ""
echo "Install NumPy with pip"
pip install numpy
# Moving to ~/code.
# NOTE: If you have a ~/code folder with any of the following installed in it, big trouble will
# happen. This script is for a new machine!
echo ""
echo "Checking for a code folder and moving there"
mkdir ~/code
cd ~/code
# install fonttools
echo ""
echo "Install fonttools"
git clone https://github.com/behdad/fonttools.git
cd fonttools
sudo -H python setup.py develop
cd ..
# install robofab
echo ""
echo "Install roboFab"
git clone https://github.com/robofab-developers/robofab.git
cd robofab
sudo -H python setup.py develop
cd ..
# install fontmath
echo ""
echo "Install fontMath"
git clone https://github.com/typesupply/fontMath.git
cd fontmath
sudo -H python setup.py develop
cd ..
# install booleanOperations
echo ""
echo "Install booleanOperations via pip"
sudo -H pip install --find-links https://github.com/typemytype/booleanOperations/releases/latest booleanOperations
# install ufoLib
echo ""
echo "Install ufoLib"
git clone https://github.com/unified-font-object/ufoLib.git
cd ufolib
sudo -H python setup.py develop
cd ..
# install defcon
echo ""
echo "Install defcon"
git clone https://github.com/typesupply/defcon.git
cd defcon
sudo -H python setup.py develop
cd ..
# install extractor
echo ""
echo "Install extractor"
git clone https://github.com/typesupply/extractor.git
cd extractor
sudo -H python setup.py develop
cd ..
# install feaTools
echo ""
echo "Install feaTools"
git clone https://github.com/typesupply/feaTools.git
cd feaTools
sudo -H python setup.py develop
cd ..
# install vanilla
echo ""
echo "Install vanilla"
git clone https://github.com/typesupply/vanilla.git
cd vanilla
sudo -H python setup.py develop
cd ..
# install feaPyFoFum
echo ""
echo "Install feaPyFoFum"
git clone https://github.com/typesupply/feaPyFoFum.git
cd feapyfofum
sudo -H python setup.py develop
cd ..
# install ufo2fdk
echo ""
echo "Install ufo2fdk"
git clone https://github.com/typesupply/ufo2fdk.git
cd ufo2fdk
sudo -H python setup.py develop
cd ..
# install compositor
echo ""
echo "Install compositor"
git clone https://github.com/typesupply/compositor.git
cd compositor
sudo -H python setup.py develop
cd ..
# install ufo2svg
echo ""
echo "Install ufo2svg"
git clone https://github.com/typesupply/ufo2svg.git
cd ufo2svg
sudo -H python setup.py develop
cd ..
# install woffTools
echo ""
echo "Install woffTools"
git clone https://github.com/typesupply/woffTools.git
cd wofftools
sudo -H python setup.py develop
cd ..
# install defconAppKit
echo ""
echo "Install defconAppKit"
git clone https://github.com/typesupply/defconAppKit.git
cd defconappkit
sudo -H python setup.py develop
cd ..
# install feaTools2
echo ""
echo "Install feaTools2"
git clone https://github.com/typesupply/feaTools2.git
cd featools2
sudo -H python setup.py develop
cd ..
# install dialogkit
echo ""
echo "Install dialogkit"
git clone https://github.com/typesupply/dialogKit.git
cd dialogkit
sudo -H python install.py
cd ..
# install fontAppTools
echo ""
echo "Install fontAppTools"
git clone https://github.com/typesupply/fontAppTools.git
cd fontapptools
sudo -H python installer.py
cd ..
# install aicbTools
echo ""
echo "Install aicbTools"
git clone https://github.com/typesupply/aicbTools.git
cd aicbtools
sudo -H python install.py
cd ..
# install brotili
echo ""
echo "Install brotli"
git clone https://github.com/google/brotli.git
cd brotli
sudo -H python setup.py install
cd ..
# install ufoNormalizer
echo ""
echo "Install ufoNormalizer"
git clone https://github.com/unified-font-object/ufoNormalizer.git
cd ufoNormalizer
sudo -H python setup.py develop
cd ..
# get the NormalizeAll command
echo ""
echo "Install normalizeAll command"
git clone https://github.com/adobe-type-tools/shell-scripts.git normalizeAll
sudo -H ln -s ~/code/normalizeAll/normalizeAll /usr/local/bin/normalizeAll
# get a copy of the git Adobe fdk
echo ""
echo "Install the git Adobe FDK files"
git clone https://github.com/adobe-type-tools/afdko.git FDK-git
# install glyphNameFormatter
echo ""
echo "Install glyphNameFormatter"
git clone https://github.com/LettError/glyphNameFormatter.git
cd glyphNameFormatter
sudo -H python setup.py develop
cd ..
# install hTools
echo ""
echo "Install the hTools2"
git clone https://github.com/gferreira/hTools2.git
cd hTools2
sudo -H python setup.py develop
cd ..
echo ""
echo "Install ots"
# install ots
git clone https://github.com/khaledhosny/ots.git
cd ots
./autogen.sh
./configure
make
sudo -H make install
cd ..
echo ""
echo "Install snftly-py"
# install in a sane way thatnks to Dalton Maag
sudo pip install --find-links https://github.com/daltonmaag/sfntly-py/releases/latest sfntly
echo ""
echo "Install fontparts"
git clone https://github.com/robofab-developers/fontParts.git
cd fontparts
python setup.py develop
cd ..
# install MutatorMath
echo ""
echo "Install MutatorMath"
git clone https://github.com/LettError/MutatorMath.git
cd MutatorMath
sudo python setup.py develop
cd ..
# install the pre-github fonttools
echo ""
echo "Install pre-github fonttools in a virtualenv"
virtualenv fonttools_og
cd fonttools_og
source bin/activate
pip install numpy
mkdir source
cd source
git clone git://git.code.sf.net/p/fonttools/code fonttools
cd fonttools
python setup.py install
cd ../../
deactivate
cd ~/
echo ""
echo "Install ttfautohint"
brew install ttfautohint --with-qt5
echo ""
echo "Done"