summaryrefslogtreecommitdiff
path: root/Build/source/texk/ttfdump/tests
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2011-05-02 12:30:55 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2011-05-02 12:30:55 +0000
commit54bed52730b7a0af68847ac70f93bd1debcaa8dd (patch)
treebf3d1cd2de55c90b1d175bb53d2b6db803267765 /Build/source/texk/ttfdump/tests
parent808caf0e3038020441cdb1d964efd26ebc6ba474 (diff)
texk/ttfdump: Add a test case and fix a type
git-svn-id: svn://tug.org/texlive/trunk@22278 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ttfdump/tests')
-rw-r--r--Build/source/texk/ttfdump/tests/FonetikaDaniaIwonaeRegular.ttfbin0 -> 7456 bytes
-rw-r--r--Build/source/texk/ttfdump/tests/ttfdump.glyf60
-rw-r--r--Build/source/texk/ttfdump/tests/ttfdump.head45
-rwxr-xr-xBuild/source/texk/ttfdump/tests/ttfdump.test14
4 files changed, 119 insertions, 0 deletions
diff --git a/Build/source/texk/ttfdump/tests/FonetikaDaniaIwonaeRegular.ttf b/Build/source/texk/ttfdump/tests/FonetikaDaniaIwonaeRegular.ttf
new file mode 100644
index 00000000000..95e09e4eb9f
--- /dev/null
+++ b/Build/source/texk/ttfdump/tests/FonetikaDaniaIwonaeRegular.ttf
Binary files differ
diff --git a/Build/source/texk/ttfdump/tests/ttfdump.glyf b/Build/source/texk/ttfdump/tests/ttfdump.glyf
new file mode 100644
index 00000000000..be977900774
--- /dev/null
+++ b/Build/source/texk/ttfdump/tests/ttfdump.glyf
@@ -0,0 +1,60 @@
+True Type Font File Dumper: v 0.5.5
+Copyright 1996-1998 ollie@ms1.hinet.net
+Dumping File:FonetikaDaniaIwonaeRegular.ttf
+
+
+Offset Table
+------------
+ sfnt version:
+ number of tables: 14
+ 0. 'GPOS' - checksum = 0xd7f8e75c, offset = 0x00001cd0, len = 80
+ 1. 'GSUB' - checksum = 0x6c91748f, offset = 0x00001cb0, len = 32
+ 2. 'OS/2' - checksum = 0x55d6fec3, offset = 0x00000168, len = 86
+ 3. 'cmap' - checksum = 0x987c2758, offset = 0x0000028c, len = 482
+ 4. 'cvt ' - checksum = 0x00210279, offset = 0x00000470, len = 4
+ 5. 'gasp' - checksum = 0xffff0003, offset = 0x00001ca8, len = 8
+ 6. 'glyf' - checksum = 0xd071d50c, offset = 0x000004dc, len = 4946
+ 7. 'head' - checksum = 0xe43df9fb, offset = 0x000000ec, len = 54
+ 8. 'hhea' - checksum = 0x05e9014f, offset = 0x00000124, len = 36
+ 9. 'hmtx' - checksum = 0x4ca30981, offset = 0x000001c0, len = 202
+ 10. 'loca' - checksum = 0x6c437107, offset = 0x00000474, len = 104
+ 11. 'maxp' - checksum = 0x0079007b, offset = 0x00000148, len = 32
+ 12. 'name' - checksum = 0x31984665, offset = 0x00001830, len = 1002
+ 13. 'post' - checksum = 0x0aef76ec, offset = 0x00001c1c, len = 140
+
+Glyph 1.
+ numberOfContours: 2
+ xMin: 33
+ yMin: 0
+ xMax: 366
+ yMax: 666
+
+ EndPoints
+ ---------
+ 0: 3
+ 1: 7
+
+ Length of Instructions: 46
+
+ Flags
+ -----
+ 0: YDual XDual X-Short On
+ 1: XDual On
+ 2: YDual On
+ 3: XDual On
+ 4: YDual Y-Short On
+ 5: YDual On
+ 6: XDual On
+ 7: YDual On
+
+ Coordinates
+ -----------
+ 0 Rel ( 33, 0) -> Abs ( 33, 0)
+ 1 Rel ( 0, 666) -> Abs ( 33, 666)
+ 2 Rel ( 333, 0) -> Abs ( 366, 666)
+ 3 Rel ( 0, -666) -> Abs ( 366, 0)
+ 4 Rel ( -300, 33) -> Abs ( 66, 33)
+ 5 Rel ( 267, 0) -> Abs ( 333, 33)
+ 6 Rel ( 0, 600) -> Abs ( 333, 633)
+ 7 Rel ( -267, 0) -> Abs ( 66, 633)
+
diff --git a/Build/source/texk/ttfdump/tests/ttfdump.head b/Build/source/texk/ttfdump/tests/ttfdump.head
new file mode 100644
index 00000000000..4e626afd6f1
--- /dev/null
+++ b/Build/source/texk/ttfdump/tests/ttfdump.head
@@ -0,0 +1,45 @@
+True Type Font File Dumper: v 0.5.5
+Copyright 1996-1998 ollie@ms1.hinet.net
+Dumping File:FonetikaDaniaIwonaeRegular.ttf
+
+
+Offset Table
+------------
+ sfnt version:
+ number of tables: 14
+ 0. 'GPOS' - checksum = 0xd7f8e75c, offset = 0x00001cd0, len = 80
+ 1. 'GSUB' - checksum = 0x6c91748f, offset = 0x00001cb0, len = 32
+ 2. 'OS/2' - checksum = 0x55d6fec3, offset = 0x00000168, len = 86
+ 3. 'cmap' - checksum = 0x987c2758, offset = 0x0000028c, len = 482
+ 4. 'cvt ' - checksum = 0x00210279, offset = 0x00000470, len = 4
+ 5. 'gasp' - checksum = 0xffff0003, offset = 0x00001ca8, len = 8
+ 6. 'glyf' - checksum = 0xd071d50c, offset = 0x000004dc, len = 4946
+ 7. 'head' - checksum = 0xe43df9fb, offset = 0x000000ec, len = 54
+ 8. 'hhea' - checksum = 0x05e9014f, offset = 0x00000124, len = 36
+ 9. 'hmtx' - checksum = 0x4ca30981, offset = 0x000001c0, len = 202
+ 10. 'loca' - checksum = 0x6c437107, offset = 0x00000474, len = 104
+ 11. 'maxp' - checksum = 0x0079007b, offset = 0x00000148, len = 32
+ 12. 'name' - checksum = 0x31984665, offset = 0x00001830, len = 1002
+ 13. 'post' - checksum = 0x0aef76ec, offset = 0x00001c1c, len = 140
+
+'head' Table - Font Header
+--------------------------
+ 'head' version: 1. 0
+ fontReversion: 1. 0
+ checkSumAdjustment: 0x851d4906
+ magicNumber: 0x5f0f3cf5
+ flags: 0x000b
+ unitsPerEm: 1000
+ created:
+ modified:
+ xMin: -63
+ yMin: -250
+ xMax: 733
+ yMax: 750
+ macStyle bits: 0x0000
+ lowestRecPPEM: 8
+ fontDirectionHint: 2
+ indexToLocFormat: 0
+ glyphDataFormat: 0
+
+
diff --git a/Build/source/texk/ttfdump/tests/ttfdump.test b/Build/source/texk/ttfdump/tests/ttfdump.test
new file mode 100755
index 00000000000..a4f70940795
--- /dev/null
+++ b/Build/source/texk/ttfdump/tests/ttfdump.test
@@ -0,0 +1,14 @@
+#! /bin/sh
+
+# Copyright (C) 2011 Peter Breitenlohner <tex-live@tug.org>
+# You may freely use, modify and/or distribute this file.
+
+rm -rf FonetikaDaniaIwonaeRegular.ttf ttfdump.glyf ttfdump.head
+cp $srcdir/tests/FonetikaDaniaIwonaeRegular.ttf .
+
+./ttfdump -t head FonetikaDaniaIwonaeRegular.ttf -o ttfdump.head || exit 1
+diff $srcdir/tests/ttfdump.head ttfdump.head || exit 1
+
+./ttfdump -t glyf -g 1 FonetikaDaniaIwonaeRegular.ttf -o ttfdump.glyf || exit 1
+diff $srcdir/tests/ttfdump.glyf ttfdump.glyf || exit 1
+