[subset] update the test file for composite, fix an offset calculation

This commit is contained in:
Rod Sheeter committed 2018-02-27 20:17:04 -08:00
1 parent c8b230e437
commit ffcb5cbf71
3 files changed
+3 -4

No files matched your search

+1 -1
View File
@@ -412,7 +412,7 @@ struct glyf
} while (composite_it.move_to_next());
if ( (uint16_t) last->flags & CompositeGlyphHeader::WE_HAVE_INSTRUCTIONS)
*instruction_start = start_offset + ((char *) last - (char *) glyf_table->dataX) + last->get_size();
*instruction_start = ((char *) last - (char *) glyf_table->dataX) + last->get_size();
else
*instruction_start = end_offset;
*instruction_end = end_offset;