| 1 |
#!/usr/bin/python3 |
| 2 |
# encoding: utf-8 |
| 3 |
# this is a smith configuration file - http://scripts.sil.org/smith |
| 4 |
|
| 5 |
# set some default output folders (most are already set by default) |
| 6 |
DOCDIR = 'web' |
| 7 |
STANDARDS = 'tests/reference' |
| 8 |
|
| 9 |
# set the font name and description |
| 10 |
APPNAME = 'Eeyek' |
| 11 |
FAMILY = APPNAME |
| 12 |
DESC_SHORT = 'Font for Meetei Mayek script' |
| 13 |
|
| 14 |
# Get version and authorship information from Regular UFO (canonical metadata) |
| 15 |
getufoinfo('source/' + FAMILY + '-Regular' + '.ufo') |
| 16 |
# BUILDLABEL = 'alpha1' |
| 17 |
|
| 18 |
# Set up the FTML tests |
| 19 |
ftmlTest('tools/ftml-list.xsl') |
| 20 |
|
| 21 |
# set the build and test parameters |
| 22 |
TESTSTRING = u'\uABC0' |
| 23 |
source = 'source/' |
| 24 |
|
| 25 |
# set up the build parameters from the designspace file(s) |
| 26 |
for dspace in ('',): |
| 27 |
designspace(source + FAMILY + dspace + '.designspace', |
| 28 |
target = process('${DS:FILENAME_BASE}.ttf', |
| 29 |
cmd('${PSFCHANGETTFGLYPHNAMES} ${SRC} ${DEP} ${TGT}', [source + '${DS:FILENAME_BASE}.ufo']), |
| 30 |
), |
| 31 |
version = VERSION, |
| 32 |
woff = woff('web/${DS:FILENAME_BASE}.woff', params='-v ' + VERSION + ' -m ../source/${DS:FAMILYNAME}-WOFF-metadata.xml'), |
| 33 |
# typetuner='source/typetuner/feat_all.xml', |
| 34 |
script = ['DFLT'], |
| 35 |
fret = fret(params='-oi') |
| 36 |
) |
| 37 |
|
| 38 |
|
| 39 |
# declare other local variables or utilities |
| 40 |
def configure(ctx): |
| 41 |
ctx.find_program('psfchangettfglyphnames') |