-
Notifications
You must be signed in to change notification settings - Fork 1
/
wscript
executable file
·50 lines (42 loc) · 1.69 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
#!/usr/bin/python3
# encoding: utf-8
# this is a smith configuration file
# set the default output folders
out="results"
DOCDIR=["documentation", "web"]
OUTDIR="installers"
ZIPDIR="releases"
TESTDIR='tests'
TESTRESULTSDIR='tests'
STANDARDS='tests/standards'
# set the font name, version, licensing and description
APPNAME='Tagmukay'
VERSION='2.000'
TTF_VERSION=VERSION
DESC_SHORT='Tifinagh Unicode TrueType font with OT and Graphite support'
DESC_LONG='''
Tagmukay is a Shifinagh (also know as Tifinagh) script font with support for the
Tawallammat Tamajaq language. It is a Unicode font that features bi-consonant
ligatures and alternate forms necessary to support this language. It has Graphite
and OpenType tables that have the logic to support these features.
'''
DEBPKG='fonts-sil-tagmukay'
# os/2 bits for the font since FontLab 5.2 doesn't provide the bit for Tifinagh
os2bits = "00000004000000000000200AA000007F"
for style in ('-Regular', '-Bold') :
fontbase = 'Tagmukay' + style
font (target = process(fontbase + '.ttf', name('Tagmukay'),
cmd('hackos2 -q -u ' + os2bits + ' ${DEP} ${TGT}'),
cmd('${TTFAUTOHINT} -n -W ${DEP} ${TGT}')),
source = 'source/' + fontbase + '-source.ttf',
version = TTF_VERSION,
opentype = fea ( 'source/' + fontbase + '.fea', no_make = 1),
graphite = gdl ( 'source/Tagmukay.gdl',
params = '-q -e gdlerr' + style + '.txt', no_make='1'
),
script = ['tfng'],
pdf = fret(),
woff = woff('web/Tagmukay' + style + '.woff', params = '-v ' + VERSION + ' -m ../source/Tagmukay-WOFF-metadata.xml'),
)
def configure(ctx) :
ctx.find_program('ttfautohint')