diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-09-18 17:14:38 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-09-18 17:14:38 +0000 |
commit | 46c5c10b90d04832f110e30295ce5ab109c2be51 (patch) | |
tree | b514e456f863c6da80bed0e8c0dfc9fd2df76e5f /Build/source/texk/ttfdump/tests | |
parent | 13d6071356cd521580ae11ead7c642c1956b2f68 (diff) |
ttfdump: Adapt to W32TeX
Handle fields present only in versions 1 and 2 of OS/2 table
git-svn-id: svn://tug.org/texlive/trunk@27693 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ttfdump/tests')
-rw-r--r-- | Build/source/texk/ttfdump/tests/texmfhome.otf | bin | 0 -> 1884 bytes | |||
-rw-r--r-- | Build/source/texk/ttfdump/tests/ttfdump.os_2 | 69 | ||||
-rwxr-xr-x | Build/source/texk/ttfdump/tests/ttfdump.test | 10 |
3 files changed, 77 insertions, 2 deletions
diff --git a/Build/source/texk/ttfdump/tests/texmfhome.otf b/Build/source/texk/ttfdump/tests/texmfhome.otf Binary files differnew file mode 100644 index 00000000000..d0af1152ff4 --- /dev/null +++ b/Build/source/texk/ttfdump/tests/texmfhome.otf diff --git a/Build/source/texk/ttfdump/tests/ttfdump.os_2 b/Build/source/texk/ttfdump/tests/ttfdump.os_2 new file mode 100644 index 00000000000..2abb1d6dfc0 --- /dev/null +++ b/Build/source/texk/ttfdump/tests/ttfdump.os_2 @@ -0,0 +1,69 @@ +True Type Font File Dumper: v 0.5.5 +Copyright 1996-1998 ollie@ms1.hinet.net +Dumping File:texmfhome.otf + + +Offset Table +------------ + sfnt version: 'OTTO' + number of tables: 10 + 0. 'CFF ' - checksum = 0xedbe4dbb, offset = 0x00000540, len = 499 + 1. 'FFTM' - checksum = 0x5648ee58, offset = 0x00000734, len = 28 + 2. 'OS/2' - checksum = 0x55da5fc2, offset = 0x00000110, len = 96 + 3. 'cmap' - checksum = 0x000d03f5, offset = 0x000003dc, len = 322 + 4. 'head' - checksum = 0xf1a97fe4, offset = 0x000000ac, len = 54 + 5. 'hhea' - checksum = 0x04b90210, offset = 0x000000e4, len = 36 + 6. 'hmtx' - checksum = 0x042b0020, offset = 0x00000750, len = 10 + 7. 'maxp' - checksum = 0x00035000, offset = 0x00000108, len = 6 + 8. 'name' - checksum = 0x4777499b, offset = 0x00000170, len = 618 + 9. 'post' - checksum = 0xff860033, offset = 0x00000520, len = 32 + +'OS/2' Table - OS/2 and Windows Metrics +--------------------------------------- + 'OS/2' version: 3 + xAvgCharWidth: 525 + usWeightClass: 500 'Medium' + usWidthClass: 5 'Medium' + fsType: 0 + ySubscriptXSize: 650 + ySubscriptYSize: 699 + ySubscriptXOffset: 0 + ySubscriptYOffset: 140 + ySuperscriptXSize: 650 + ySuperscriptYSize: 699 + ySuperscriptXOffset: 0 + ySuperscriptYOffset: 479 + yStrikeoutSize: 49 + yStrikeoutPosition 258 + sFamilyClass: 0 subclass = 0 + PANOSE: + Family Kind: 2 'Text and Display' + Serif Style: 0 'Any' + Weight: 6 'Medium' + Proportion: 9 'Monospaced' + Contrast: 0 'Any' + Stroke: 0 'Any' + Arm Style: 0 'Any' + Lettreform: 0 'Any' + Midline: 0 'Any' + X-height: 0 'Any' + Unicode Range 1( Bits 0 - 31 ): 0x00000001 + Unicode Range 2( Bits 32 - 63 ): 0x00000000 + Unicode Range 3( Bits 64 - 95 ): 0x00000000 + Unicode Range 4( Bits 96 - 128 ): 0x00000000 + achVendID: 'PfEd' + fsSelection: 0x0040 'Regular ' + usFirstCharIndex: 0xffff + usLastCharIndex: 0x0000 + sTypoAscender: 800 + sTypoDescender: -200 + sTypoLineGap: 90 + usWinAscent: 611 + usWinDescent: 0 + CodePage Range 1( Bits 0 - 31 ): 0x00000001 + CodePage Range 2( Bits 32- 63 ): 0x00000000 + sxHeight: 0 + sCapHeight: 0 + usDefaultChar: 0x0020 + usBreakChar: 0x0020 + usMaxContext: 1 diff --git a/Build/source/texk/ttfdump/tests/ttfdump.test b/Build/source/texk/ttfdump/tests/ttfdump.test index 3d10381e51e..4e5c5fb77cb 100755 --- a/Build/source/texk/ttfdump/tests/ttfdump.test +++ b/Build/source/texk/ttfdump/tests/ttfdump.test @@ -9,8 +9,9 @@ export TEXMFCNF TTFONTS failed= -rm -rf FonetikaDaniaIwonaeRegular.ttf ttftest.* +rm -rf FonetikaDaniaIwonaeRegular.ttf texmfhome.otf ttftest.* cp $srcdir/tests/FonetikaDaniaIwonaeRegular.ttf . +cp $srcdir/tests/texmfhome.otf . ./ttfdump -t glyf -g 1 -o ttftest.glyf FonetikaDaniaIwonaeRegular.ttf \ && diff -b $srcdir/tests/ttfdump.glyf ttftest.glyf \ @@ -27,11 +28,16 @@ cp $srcdir/tests/FonetikaDaniaIwonaeRegular.ttf . && echo "ttfdump.gsub tests OK" \ || failed="$failed ttfdump.gsub" -./ttfdump -t head FonetikaDaniaIwonaeRegular.ttf > ttftest.head \ +./ttfdump -t head FonetikaDaniaIwonaeRegular.ttf >ttftest.head \ && diff -b $srcdir/tests/ttfdump.head ttftest.head \ && echo "ttfdump.head tests OK" \ || failed="$failed ttfdump.head" +./ttfdump -t OS/2 texmfhome.otf >ttftest.os_2 \ + && diff -b $srcdir/tests/ttfdump.os_2 ttftest.os_2 \ + && echo "ttfdump.os_2 tests OK" \ + || failed="$failed ttfdump.os_2" + test -z "$failed" && exit 0 echo "failed tests:$failed" exit 1 |