-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subset fails: OTS parsing error: hhea: misaligned table #119
Comments
Any issues during subset creation? I'm able to create a subset but during the process there's a parsing issue. This could be the cause of the invalid formatting of the subset.
(the specific offset depends on the subset) |
It looks like the mis-aligned table issue is actually caused by a lack of table padding in the generated font. Tables are supposed to conform to a 4-byte block size (i.e. the size of the table should be a multiple of 4). If the table doesn't fully fill a block php-font-lib should be padding it out but it was not. |
Per the spec: > The length of any table is a multiple of four bytes, or that tables are padded with zero to four byte-aligned offsets. Actual table lengths recorded in the TableDirectory should not include padding. fixes #119
Per the spec: > The length of any table is a multiple of four bytes, or that tables are padded with zero to four byte-aligned offsets. Actual table lengths recorded in the TableDirectory should not include padding. fixes #119
Per the spec: > The length of any table is a multiple of four bytes, or that tables are padded with zero to four byte-aligned offsets. Actual table lengths recorded in the TableDirectory should not include padding. fixes #119
Per the spec: > The length of any table is a multiple of four bytes, or that tables are padded with zero to four byte-aligned offsets. Actual table lengths recorded in the TableDirectory should not include padding. fixes #119
Per the spec: > The length of any table is a multiple of four bytes, or that tables are padded with zero to four byte-aligned offsets. Actual table lengths recorded in the TableDirectory should not include padding. fixes #119
Per the spec: > The length of any table is a multiple of four bytes, or that tables are padded with zero to four byte-aligned offsets. Actual table lengths recorded in the TableDirectory should not include padding. fixes #119
Per the spec: > The length of any table is a multiple of four bytes, or that tables are padded with zero to four byte-aligned offsets. Actual table lengths recorded in the TableDirectory should not include padding. fixes #119
Any subset of OpenSans-Regular.ttf throws an error in FF and Chrome:
OTS parsing error: hhea: misaligned table
The text was updated successfully, but these errors were encountered: