W3C home > Mailing lists > Public > www-font@w3.org > January to March 2011

Some fields in OT header are not mentioned in WOFF spec

From: Sergey Malkin <sergeym@microsoft.com>
Date: Fri, 7 Jan 2011 17:54:05 +0000
To: "www-font (www-font@w3.org)" <www-font@w3.org>
Message-ID: <6312A922AE7F2047A64036E70F1112B618F7D8@TK5EX14MBXW651.wingroup.windeploy.ntdev.microsoft.com>
I noticed that there are three fields in OpenType font header that are not mentioned in WOFF spec: searchRange, entrySelector, and rangeShift.

They are calculated from number of tables in the font, so WOFF unpacking code can restore them unambiguously. However, I think WOFF spec should mentioned them in two places. First, it has to reference OpenType spec for calculation algorithm. And second, conformance requirements have to mention that these fields should be correct in original font to ensure complete roundtrip.

Thanks,
Sergey
Received on Friday, 7 January 2011 17:56:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 11 June 2011 00:14:10 GMT