-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwscript
38 lines (30 loc) · 1.32 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
# set the default output folders for release docs
DOCDIR = ["documentation", "web"]
# set the font name and description
APPNAME = 'BJCree'
FAMILY = APPNAME
DESC_SHORT = "A Canadian Syllabics font for the Algonquian family of languages."
# TESTDIR = ["tests", "../font-kayphodu-private/tests"]
# Get version and authorship information from Regular UFO (canonical metadata); must be first function call:
getufoinfo('source/masters/' + FAMILY + '-Regular.ufo')
# Set up the FTML tests
# ftmlTest('tools/ftml-smith.xsl')
cmds = []
cmds.append(cmd('psfchangettfglyphnames ${SRC} ${DEP} ${TGT}', ['${source}']))
#cmds.append(cmd('../tools/ttfaddemptyot.py -t gpos ${DEP} ${TGT}'))
#cmds.append(cmd('${TTFAUTOHINT} -n -W ${DEP} ${TGT}'))
designspace('source/' + FAMILY + '.designspace',
target = process("${DS:FILENAME_BASE}.ttf", *cmds),
params = "--decomposeComponents --removeOverlap",
# opentype = fea('srcs/${DS:FILENAME_BASE}.fea', master='source/empty.feax'),
woff = woff('web/${DS:FILENAME_BASE}.woff',
metadata=f'../source/{FAMILY}-WOFF-metadata.xml',
cmd='psfwoffit -m ${SRC[1]} --woff ${TGT} --woff2 ${TGT}2 ${SRC[0]}'
),
pdf = fret(params='-oi'),
script = ['DFLT', 'kali'],
)
#def configure(ctx):
# ctx.find_program('ttfautohint')