Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
292 lines (287 sloc) 15.5 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>WOFF: Authoring Tool Test Suite</title>
<style type="text/css">
@import "resources/index.css";
</style>
</head>
<body>
<h1>WOFF: Authoring Tool Test Suite (24 tests)</h1>
<div class="mainNote">
The files used in these test can be obtained individually <a href="../xhtml1">here</a> or as a single zip file <a href="AuthoringToolTestFonts.zip">here</a>.
</div>
<div class="mainNote">
The tests in this suite represent SFNT data to be used for WOFF
conversion without any alteration or correction. An authoring tool
may allow the explicit or silent modification and/or correction of
SFNT data. In such a case, the tests in this suite that are labeled
as "should not convert" may be converted, so long as the problems
in the files have been corrected. In that case, there is no longer
any access to the "input font" as defined in the WOFF specification,
so the bitwise identical tests should be skipped.
</div>
<h2 class="testCategory">Valid SFNTs</h2>
<div class="testCategoryNote">
These files are valid SFNTs that should be converted to WOFF.
</div>
<div class="testCase" id="validsfnt-001">
<div class="testCaseOverview">
<h3><a href="#validsfnt-001">validsfnt-001</a>: Valid CFF SFNT</h3>
<p>The CFF flavored SFNT data is valid.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="validsfnt-001-shouldconvert">Yes</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-checksumvalidate">Documentation</a></p>
</div>
</div>
<div class="testCase" id="validsfnt-002">
<div class="testCaseOverview">
<h3><a href="#validsfnt-002">validsfnt-002</a>: Valid TTF SFNT</h3>
<p>The TTF flavored SFNT data is valid.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="validsfnt-002-shouldconvert">Yes</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-checksumvalidate">Documentation</a></p>
</div>
</div>
<h2 class="testCategory">Invalid SFNT Tests</h2>
<div class="testCategoryNote">
These files are invalid SFNTs that should not be converted to WOFF.
</div>
<div class="testCase" id="invalidsfnt-checksum-001">
<div class="testCaseOverview">
<h3><a href="#invalidsfnt-checksum-001">invalidsfnt-checksum-001</a>: Table Directory Contains Invalid CheckSum</h3>
<p>The checksum for the OS/2 table is set to 0.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="invalidsfnt-checksum-001-shouldconvert">No</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-checksumvalidate">Documentation</a></p>
</div>
</div>
<div class="testCase" id="invalidsfnt-checksum-002">
<div class="testCaseOverview">
<h3><a href="#invalidsfnt-checksum-002">invalidsfnt-checksum-002</a>: Font head Table Incorrect CheckSum Adjustment</h3>
<p>The head table checksum adjustment is set to 0.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="invalidsfnt-checksum-002-shouldconvert">No</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-checksumvalidate">Documentation</a></p>
</div>
</div>
<div class="testCase" id="invalidsfnt-padding-001">
<div class="testCaseOverview">
<h3><a href="#invalidsfnt-padding-001">invalidsfnt-padding-001</a>: Table Data Missing Padding</h3>
<p>There is no padding between two tables. The head check sum adjustment is also incorrect as a result.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="invalidsfnt-padding-001-shouldconvert">No</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-incorrect-reject">Documentation</a></p>
</div>
</div>
<div class="testCase" id="invalidsfnt-padding-002">
<div class="testCaseOverview">
<h3><a href="#invalidsfnt-padding-002">invalidsfnt-padding-002</a>: Final Table in Table Data Is Not Padded</h3>
<p>There is no padding after the final table.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="invalidsfnt-padding-002-shouldconvert">No</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-incorrect-reject">Documentation</a></p>
</div>
</div>
<div class="testCase" id="invalidsfnt-padding-003">
<div class="testCaseOverview">
<h3><a href="#invalidsfnt-padding-003">invalidsfnt-padding-003</a>: Unnecessary Padding Between Tables</h3>
<p>There are four extra bytes after the head table. The head check sum adjustment is also incorrect as a result.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="invalidsfnt-padding-003-shouldconvert">No</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-incorrect-reject">Documentation</a></p>
</div>
</div>
<div class="testCase" id="invalidsfnt-padding-004">
<div class="testCaseOverview">
<h3><a href="#invalidsfnt-padding-004">invalidsfnt-padding-004</a>: Unnecessary Padding After Final Table</h3>
<p>There are four extra bytes after the final table. The head check sum adjustment is also incorrect as a result.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="invalidsfnt-padding-004-shouldconvert">No</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-incorrect-reject">Documentation</a></p>
</div>
</div>
<div class="testCase" id="invalidsfnt-padding-005">
<div class="testCaseOverview">
<h3><a href="#invalidsfnt-padding-005">invalidsfnt-padding-005</a>: Invalid Padding Bytes in Table Data</h3>
<p>There is padding after the head table that is not null.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="invalidsfnt-padding-005-shouldconvert">No</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-incorrect-reject">Documentation</a></p>
</div>
</div>
<div class="testCase" id="invalidsfnt-blocks-001">
<div class="testCaseOverview">
<h3><a href="#invalidsfnt-blocks-001">invalidsfnt-blocks-001</a>: Table Data Blocks Overlap</h3>
<p>Two table blocks overlap.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="invalidsfnt-blocks-001-shouldconvert">No</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-incorrect-reject">Documentation</a></p>
</div>
</div>
<div class="testCase" id="invalidsfnt-blocks-002">
<div class="testCaseOverview">
<h3><a href="#invalidsfnt-blocks-002">invalidsfnt-blocks-002</a>: Table Data Block Begins Before End Of Directory</h3>
<p>The first table has an offset that is before the end of the table directory.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="invalidsfnt-blocks-002-shouldconvert">No</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-incorrect-reject">Documentation</a></p>
</div>
</div>
<div class="testCase" id="invalidsfnt-blocks-003">
<div class="testCaseOverview">
<h3><a href="#invalidsfnt-blocks-003">invalidsfnt-blocks-003</a>: Table Data Block Offset + Length Extends Past End of File</h3>
<p>The final table has an offset + length that is four bytes past the end of the file.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="invalidsfnt-blocks-003-shouldconvert">No</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-incorrect-reject">Documentation</a></p>
</div>
</div>
<div class="testCase" id="invalidsfnt-directory-order-001">
<div class="testCaseOverview">
<h3><a href="#invalidsfnt-directory-order-001">invalidsfnt-directory-order-001</a>: Table Directory Not In Ascending Order</h3>
<p>The table directory is in descending order.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="invalidsfnt-directory-order-001-shouldconvert">No</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-incorrect-reject">Documentation</a></p>
</div>
</div>
<div class="testCase" id="invalidsfnt-searchrange-001">
<div class="testCaseOverview">
<h3><a href="#invalidsfnt-searchrange-001">invalidsfnt-searchrange-001</a>: Invalid searchRange</h3>
<p>The searchRange is set to 0.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="invalidsfnt-searchrange-001-shouldconvert">No</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-incorrect-reject">Documentation</a></p>
</div>
</div>
<div class="testCase" id="invalidsfnt-entryselector-001">
<div class="testCaseOverview">
<h3><a href="#invalidsfnt-entryselector-001">invalidsfnt-entryselector-001</a>: Invalid entrySelector</h3>
<p>The entrySelector is set to 0.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="invalidsfnt-entryselector-001-shouldconvert">No</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-incorrect-reject">Documentation</a></p>
</div>
</div>
<div class="testCase" id="invalidsfnt-rangeshift-001">
<div class="testCaseOverview">
<h3><a href="#invalidsfnt-rangeshift-001">invalidsfnt-rangeshift-001</a>: Invalid rangeShift</h3>
<p>The rangeShift is set to 0.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="invalidsfnt-rangeshift-001-shouldconvert">No</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-incorrect-reject">Documentation</a></p>
</div>
</div>
<h2 class="testCategory">SFNT Table Data Tests</h2>
<div class="testCategoryNote">
These files are valid SFNTs that excercise conversion of the table data.
</div>
<div class="testCase" id="tabledata-compression-size-001">
<div class="testCaseOverview">
<h3><a href="#tabledata-compression-size-001">tabledata-compression-size-001</a>: The "TEST" Table Must Not Be Compressed</h3>
<p>The "TEST" table will be larger when compressed so it must not be compressed.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="tabledata-compression-size-001-shouldconvert">Yes</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-compressedlarger">Documentation</a></p>
</div>
</div>
<h2 class="testCategory">SFNT Table Directory Tests</h2>
<div class="testCategoryNote">
These files are valid SFNTs that excercise conversion of the table directory.
</div>
<div class="testCase" id="tabledirectory-ascending-001">
<div class="testCaseOverview">
<h3><a href="#tabledirectory-ascending-001">tabledirectory-ascending-001</a>: The Table Directory Must Be In Ascending Order</h3>
<p>The SFNT contains 1AAA, 2AAA, A1AA, A2AA, AA1A, AA2A, AAA1, AAA2, AAAA, AAAB, AABA, ABAA, BAAA, 8ZZZ, 9ZZZ, Z8ZZ, Z9ZZ, ZZ8Z, ZZ9Z, ZZZ8, ZZZ9, YZZZ, ZYZZ, ZZYZ, ZZZY, ZZZZ, 1aaa, 2aaa, a1aa, a2aa, aa1a, aa2a, aaa1, aaa2, aaaa, aaab, aaba, abaa, baaa, 8zzz, 9zzz, z8zz, z9zz, zz8z, zz9z, zzz8, zzz9, yzzz, zyzz, zzyz, zzzy, zzzz tables in addition to the standard tables. The result of conversion to WOFF should be checked to ensure that the directory is in ascending order.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="tabledirectory-ascending-001-shouldconvert">Yes</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-ascending">Documentation</a></p>
</div>
</div>
<h2 class="testCategory">SFNT Bitwise Identical Tests</h2>
<div class="testCategoryNote">
These files are provided as test cases for checking that the
result of converting to WOFF and back to SFNT results in a file
that is bitwise identical to the original SFNT.
</div>
<div class="testCase" id="bitwiseidentical-001">
<div class="testCaseOverview">
<h3><a href="#bitwiseidentical-001">bitwiseidentical-001</a>: SFNT With Common CFF Structure</h3>
<p>The SFNT has a common CFF structure. The process of converting to WOFF and back to SFNT should result in a file that is bitwise identical.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="bitwiseidentical-001-shouldconvert">Yes</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-identical">Documentation</a></p>
</div>
</div>
<div class="testCase" id="bitwiseidentical-002">
<div class="testCaseOverview">
<h3><a href="#bitwiseidentical-002">bitwiseidentical-002</a>: SFNT With Common TTF Structure</h3>
<p>The SFNT has a common TTF structure. The process of converting to WOFF and back to SFNT should result in a file that is bitwise identical.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="bitwiseidentical-002-shouldconvert">Yes</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-identical">Documentation</a></p>
</div>
</div>
<div class="testCase" id="bitwiseidentical-003">
<div class="testCaseOverview">
<h3><a href="#bitwiseidentical-003">bitwiseidentical-003</a>: SFNT With Uncommon Table</h3>
<p>The SFNT has a DSIG table. (Note: this is not a valid DSIG. It should not be used for testing anything other than the presence of the table after the conversion process.) The process of converting to WOFF and back to SFNT should result in a file that is bitwise identical.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="bitwiseidentical-003-shouldconvert">Yes</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-identical">Documentation</a></p>
</div>
</div>
<div class="testCase" id="bitwiseidentical-004">
<div class="testCaseOverview">
<h3><a href="#bitwiseidentical-004">bitwiseidentical-004</a>: SFNT With Non-Standard Table</h3>
<p>The SFNT has a TEST table. The process of converting to WOFF and back to SFNT should result in a file that is bitwise identical.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="bitwiseidentical-004-shouldconvert">Yes</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-identical">Documentation</a></p>
</div>
</div>
<div class="testCase" id="bitwiseidentical-005">
<div class="testCaseOverview">
<h3><a href="#bitwiseidentical-005">bitwiseidentical-005</a>: SFNT Without Recommended CFF Table Order</h3>
<p>The SFNT has a table order that does not follow the recommended CFF table ordering as defined in the OpenType specification. The process of converting to WOFF and back to SFNT should result in a file that is bitwise identical.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="bitwiseidentical-005-shouldconvert">Yes</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-identical">Documentation</a></p>
</div>
</div>
<div class="testCase" id="bitwiseidentical-006">
<div class="testCaseOverview">
<h3><a href="#bitwiseidentical-006">bitwiseidentical-006</a>: SFNT Without Recommended TTF Table Order</h3>
<p>The SFNT has a table order that does not follow the recommended TTF table ordering as defined in the OpenType specification. The process of converting to WOFF and back to SFNT should result in a file that is bitwise identical.</p>
</div>
<div class="testCaseDetails">
<p>Should Convert to WOFF: <span id="bitwiseidentical-006-shouldconvert">Yes</span></p>
<p><a href="http://dev.w3.org/webfonts/WOFF/spec/#conform-identical">Documentation</a></p>
</div>
</div>
</body>
</html>
You can’t perform that action at this time.