Commit 0de63ed5 authored by Santhosh Thottingal's avatar Santhosh Thottingal

Build script updates

Removes FFTM table
Validates the glyphs, correct the references and compiles feature
files using fonttools

The python code is referenced from Amiri font's build script written
by Khaled Hosny
parent 127668ef
......@@ -20,7 +20,7 @@ OS2Version: 1
OS2_WeightWidthSlopeOnly: 0
OS2_UseTypoMetrics: 1
CreationTime: 1201144287
ModificationTime: 1458881765
ModificationTime: 1458883251
PfmFamily: 17
TTFWeight: 400
TTFWidth: 5
......@@ -73,676 +73,8 @@ ShortTable: maxp 16
0
0
EndShort
TtTable: prep
PUSHW_1
511
SCANCTRL
PUSHB_1
1
SCANTYPE
SVTCA[y-axis]
MPPEM
PUSHB_1
8
LT
IF
PUSHB_2
1
1
INSTCTRL
EIF
PUSHB_2
70
6
CALL
IF
POP
PUSHB_1
16
EIF
MPPEM
PUSHB_1
20
GT
IF
POP
PUSHB_1
128
EIF
SCVTCI
PUSHB_1
6
CALL
NOT
IF
EIF
PUSHB_1
20
CALL
EndTTInstrs
TtTable: fpgm
PUSHB_1
0
FDEF
PUSHB_1
0
SZP0
MPPEM
PUSHB_1
42
LT
IF
PUSHB_1
74
SROUND
EIF
PUSHB_1
0
SWAP
MIAP[rnd]
RTG
PUSHB_1
6
CALL
IF
RTDG
EIF
MPPEM
PUSHB_1
42
LT
IF
RDTG
EIF
DUP
MDRP[rp0,rnd,grey]
PUSHB_1
1
SZP0
MDAP[no-rnd]
RTG
ENDF
PUSHB_1
1
FDEF
DUP
MDRP[rp0,min,white]
PUSHB_1
12
CALL
ENDF
PUSHB_1
2
FDEF
MPPEM
GT
IF
RCVT
SWAP
EIF
POP
ENDF
PUSHB_1
3
FDEF
ROUND[Black]
RTG
DUP
PUSHB_1
64
LT
IF
POP
PUSHB_1
64
EIF
ENDF
PUSHB_1
4
FDEF
PUSHB_1
6
CALL
IF
POP
SWAP
POP
ROFF
IF
MDRP[rp0,min,rnd,black]
ELSE
MDRP[min,rnd,black]
EIF
ELSE
MPPEM
GT
IF
I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