-
Notifications
You must be signed in to change notification settings - Fork 0
/
wscript
56 lines (45 loc) · 1.87 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/python3
# this is a smith configuration file
# set the default output folders for release docs
DOCDIR = ["documentation", "web"]
# set the font name and description
APPNAME = 'Busra'
FAMILY = APPNAME
DESC_SHORT = "Font family for the Khmer script"
TESTDIR = ["tests"]
opts = preprocess_args({'opt': '--nofinalc'})
# Get version and authorship information from Regular UFO (canonical metadata); must be first function call:
getufoinfo('source/masters/' + FAMILY + '-Regular.ufo')
# BUILDLABEL = 'beta1'
# Set up the FTML tests
# ftmlTest('tools/ftml-smith.xsl')
mparams = []
if "--nofinalc" not in opts:
mparams.append("-D finalc=1")
# cmds = [cmd('psfchangettfglyphnames ${SRC} ${DEP} ${TGT}', ['source/instances/${DS:FILENAME_BASE}.ufo'])]
designspace('source/' + FAMILY + 'Upright.designspace',
target = "${DS:FILENAME_BASE}.ttf",
# target = process("${DS:FILENAME_BASE}.ttf", *cmds),
params = "--decomposeComponents --removeOverlap",
opentype = fea('source/${DS:FILENAME_BASE}.fea',
master = 'source/Busra.feax',
make_params = " ".join(mparams),
params = '-m source/${DS:FILENAME_BASE}.map'),
woff = woff('web/${DS:FILENAME_BASE}.woff',
metadata=f'../source/busra-WOFF-metadata.xml'),
script = 'khmr',
pdf = fret(params='-oi -r')
)
#extralightpackage = package(appname = "BusraXLTest", docdir = DOCDIR)
#getufoinfo('source/masters/' + FAMILY + '-Regular.ufo', extralightpackage)
#designspace('source/' + FAMILY + 'UprightXLonly.designspace',
# target = "${DS:FILENAME_BASE}.ttf",
# params = "--decomposeComponents --removeOverlap",
# opentype = fea('source/${DS:FILENAME_BASE}.fea',
# master = 'source/Busra.feax',
# make_params = " ".join(mparams),
# params = '-m source/${DS:FILENAME_BASE}.map'),
# script = 'khmr',
# pdf = fret(params='-oi -r'),
# package = extralightpackage
#)