File: wscript

package info (click to toggle)
fonts-eeyek 2.000-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,760 kB
  • sloc: xml: 121; sh: 24; python: 21; makefile: 8
file content (41 lines) | stat: -rw-r--r-- 1,331 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/python3
# encoding: utf-8
# this is a smith configuration file - http://scripts.sil.org/smith

# set some default output folders (most are already set by default)
DOCDIR = 'web'
STANDARDS = 'tests/reference'

# set the font name and description
APPNAME = 'Eeyek'
FAMILY = APPNAME
DESC_SHORT = 'Font for Meetei Mayek script'

# Get version and authorship information from Regular UFO (canonical metadata)
getufoinfo('source/' + FAMILY + '-Regular' + '.ufo')
# BUILDLABEL = 'alpha1'

# Set up the FTML tests
ftmlTest('tools/ftml-list.xsl')

# set the build and test parameters
TESTSTRING = u'\uABC0'
source = 'source/'

# set up the build parameters from the designspace file(s)
for dspace in ('',):
    designspace(source + FAMILY + dspace + '.designspace',
        target = process('${DS:FILENAME_BASE}.ttf',
            cmd('${PSFCHANGETTFGLYPHNAMES} ${SRC} ${DEP} ${TGT}', [source + '${DS:FILENAME_BASE}.ufo']),
        ),
        version = VERSION,
        woff = woff('web/${DS:FILENAME_BASE}.woff', params='-v ' + VERSION + ' -m ../source/${DS:FAMILYNAME}-WOFF-metadata.xml'),
        # typetuner='source/typetuner/feat_all.xml',
        script = ['DFLT'],
        fret = fret(params='-oi')
        )


# declare other local variables or utilities
def configure(ctx):
    ctx.find_program('psfchangettfglyphnames')