[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

Review URL: https://codereview.chromium.org/14758005

git-svn-id: http://ots.googlecode.com/svn/trunk@101 a4e77c2c-9104-11de-800e-5b313e0d2bf3
2 files changed