[HarfBuzz] harfbuzz: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Thu Feb 8 03:49:12 UTC 2018
src/hb-open-file-private.hh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 941bbd9f257367f838e55d079751c6059974fe2f
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Wed Feb 7 21:49:01 2018 -0600
[subset] Fix thinko
diff --git a/src/hb-open-file-private.hh b/src/hb-open-file-private.hh
index c2e1f7de..606ee19a 100644
--- a/src/hb-open-file-private.hh
+++ b/src/hb-open-file-private.hh
@@ -136,11 +136,12 @@ typedef struct OffsetTable
if (unlikely (!c->extend_min (*this))) return_trace (false);
sfnt_version.set (sfnt_tag);
if (unlikely (!tables.serialize (c, table_count))) return_trace (false);
+
for (unsigned int i = 0; i < table_count; i++)
{
TableRecord &rec = tables.array[i];
hb_blob_t *blob = blobs[i];
- rec.tag.set (tags[0]);
+ rec.tag.set (tags[i]);
rec.length.set (hb_blob_get_length (blob));
rec.checkSum.set_for_data (hb_blob_get_data (blob, nullptr), rec.length);
rec.offset.serialize (c, this);
@@ -150,6 +151,9 @@ typedef struct OffsetTable
if (rec.length % 4)
p = c->allocate_size<void> (4 - rec.length % 4);
}
+ tags.advance (table_count);
+ blobs.advance (table_count);
+
tables.qsort ();
return_trace (true);
}
More information about the HarfBuzz
mailing list