Description[OTS] Fix WOFF2 decode error
Fix a bug that woff2 decoder fails to reconstruct glyf table
when glyf table of original file was aligned to 2-byte boundaries.
Before this patch, ReconstructGlyf() aligned glyf entries to 4-byte
boundaries (which is a recommendation of the OpenType format, but not required).
But the encoder stores original size of glyf table into woff2 header, so reconstructed
glyf table become larger than the expected size, and cause decode error.
This patch makes ReconstructGlyf() to generate 2-byte aligned glyf table.
R=yusukes@chromium.org
Committed: 101
Patch Set 1 #Messages
Total messages: 3 (0 generated)
|