summaryrefslogtreecommitdiff
path: root/Build/source/texk/lcdf-typetools/tests/tfm.test
blob: c7458bada162c4d1c8ad187c80fc858156b89564 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh

# Copyright (C) 2012 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

TEXMFCNF=$srcdir/../kpathsea
ENCFONTS=.:$srcdir/tests
export TEXMFCNF ENCFONTS

rm -f Ant* a_enhg3c.enc

$LCDF_TYPETOOLS_TREE/otftotfm/otftotfm -e texnansx --glyphlist=$srcdir/$LCDF_TYPETOOLS_TREE/glyphlist.txt \
	-p -fkern -fliga \
	$srcdir/tests/antpolt-regular.otf Ant >Ant.map \
	&& sed -e '1d' Ant.pl >Ant.plx \
	&& diff Ant.plx $srcdir/tests/Ant.pl \
	&& diff Ant.map $srcdir/tests/Ant.map \
	&& sed -e '4d;/line:/,/Ant/d' a_enhg3c.enc >Ant.enc \
	&& diff Ant.enc $srcdir/tests/Ant.enc \
	&& cmp -s AntPolt-Regular.pfb $srcdir/tests/Ant.pfb || exit 1