forked from silnrsi/font-abyssinica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwscript
38 lines (30 loc) · 1.39 KB
/
wscript
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
#!/usr/bin/python3
# this is a smith configuration file for Abyssinica font project
# override the default folders
DOCDIR = ['documentation', 'web'] # add 'web' to default
generated = 'generated/'
# set package name
APPNAME = 'AbyssinicaSIL'
# set the font family name
FAMILY = APPNAME
#import glob
# set the default output folders
out = "results" # default is currently buildlinux2
# OUTDIR = "installers" # until these are defaults in smith itself we need to keep them
ZIPDIR = "releases"
TESTDIR = "tests"
getufoinfo('source/' + FAMILY + '-Regular' + '.ufo')
ftmlTest('tools/ftml-smith.xsl', fonts = ['reference/AbyssinicaSIL-Regular.ttf'], addfontindex = 1, fontmode = 'collect')
designspace('source/' + FAMILY + '.designspace',
target = "${DS:FILENAME_BASE}.ttf",
ap = generated + '${DS:FILENAME_BASE}_ap.xml',
version = VERSION, # Needed to ensure dev information on version string
opentype = fea(generated + '${DS:FILENAME_BASE}.fea',
master = 'source/opentype/master.feax',
mapfile = generated + '${DS:FILENAME_BASE}.map'
),
typetuner = typetuner("source/typetuner/feat_all.xml"),
script = 'ethi',
pdf = fret(params="-r -oi"),
woff = woff('web/${DS:FILENAME_BASE}.woff', params='-v ' + VERSION + ' -m ../source/' + FAMILY + '-WOFF-metadata.xml'),
)