summaryrefslogtreecommitdiff
path: root/Build/source/texk/ttf2pk2/tests/ttf2pk.test
blob: ec503f2e1b2c4c6a45695094852780ab2d7fcae9 (plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#! /bin/sh -vx
# $Id$
# Copyright 2017 Karl Berry <tex-live@tug.org>
# Copyright 2011, 2012 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

rm -f GenR-ec.vpl GenR102-* ipaexg-*

TEXMFCNF=$srcdir/../kpathsea
TEXFONTS=.:$srcdir/tests
TTF2PKINPUTS=$srcdir/tests
SFDFONTS="$srcdir/data;$srcdir/tests"

export TEXMFCNF TEXFONTS TTF2PKINPUTS SFDFONTS

./ttf2tfm GenR102 -u -q -N -T gentium-ec -v GenR-ec GenR102-ec >GenR102-ec.map || exit 1
diff $srcdir/tests/GenR102-ec.map GenR102-ec.map || exit 1
diff $srcdir/tests/GenR-ec.vpl GenR-ec.vpl || exit 1

./ttf2pk -q GenR102-ec 100 || exit 1

tftopl GenR102-ec GenR102-ec || exit 77
diff $srcdir/tests/GenR102-ec.pl GenR102-ec.pl || exit 1
pktype GenR102-ec.100pk >GenR102-ec.typ || exit 77

echo passed GenR102-ec test

./ttf2tfm GenR102 -q GenR102-h@UBig5@ >GenR102-h.map || exit 1
diff $srcdir/tests/GenR102-h.map GenR102-h.map || exit 1

for sf in 00 01 02 24; do

  ./ttf2pk -q GenR102-h$sf 100 || exit 1

  tftopl GenR102-h$sf GenR102-h$sf || exit 77
  pktype GenR102-h$sf.100pk >GenR102-h$sf.typ || exit 77

done

echo passed GenR102-h test

./ttf2tfm GenR102 -q -x GenR102-v@UBig5@ >GenR102-v.map || exit 1
diff $srcdir/tests/GenR102-v.map GenR102-v.map || exit 1

for sf in 00 01 02 24; do

  ./ttf2pk -q GenR102-v$sf 100 || exit 1

  tftopl GenR102-v$sf GenR102-v$sf || exit 77
  pktype GenR102-v$sf.100pk >GenR102-v$sf.typ || exit 77

done

echo passed GenR102-v test

./ttf2tfm ipaexg -q ipaexg-h@Test@ >ipaexg-h.map || exit 1
diff $srcdir/tests/ipaexg-h.map ipaexg-h.map || exit 1

./ttf2pk -q ipaexg-h03 100 || exit 1

tftopl ipaexg-h03 ipaexg-h03  || exit 77
diff $srcdir/tests/ipaexg-h03.pl ipaexg-h03.pl || exit 1
pktype ipaexg-h03.100pk >ipaexg-h03.typ || exit 77

echo passed ipaexg-h test

./ttf2tfm ipaexg -q -x ipaexg-v@Test@ >ipaexg-v.map || exit 1
diff $srcdir/tests/ipaexg-v.map ipaexg-v.map || exit 1

./ttf2pk -q ipaexg-v03 100 || exit 1

tftopl ipaexg-v03 ipaexg-v03  || exit 77
diff $srcdir/tests/ipaexg-v03.pl ipaexg-v03.pl || exit 1
pktype ipaexg-v03.100pk >ipaexg-v03.typ || exit 77

echo passed ipaexg-v test