When and How to Ship W3C WOFF 1.0 Alongside Modern WOFF2
Strict W3C WOFF 1.0 Per-Table Deflate and Alignment Rules
While WOFF2 dominates evergreen browsers, industrial HMI panels, older smart-TV WebKit builds, EPUB 3 reading systems, and enterprise PDF-to-HTML renderers still request WOFF 1.0 (.woff) assets. Building a standards-compliant WOFF 1.0 wrapper requires strict adherence to W3C Section 4 directory ordering and per-table compression thresholds.
Our encoder normalizes SFNT checksums first, sorts all 20-byte WOFF directory entries ascending by 4-byte tag, compresses each table independently via RFC 1950 zlib level 9, and automatically stores the raw uncompressed table slice whenever zlib framing equals or exceeds origLength. Every stored block is padded with zeroes to 4-byte alignment so strict EPUB and browser validators pass with zero warnings.
- Writes exact 44-byte WOFF 1.0 headers with majorVersion=1, minorVersion=0, and reserved=0.
- Calculates exact totalSfntSize matching the padded desktop SFNT reconstruction footprint.
- Supports optional HarfBuzz subsetting prior to WOFF 1.0 compression.
- Pairs cleanly as a secondary fallback url("font.woff") format("woff") after WOFF2.