From 34e3f561b53de6feaa6d3f2dfea6014a12661d86 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 27 Jun 2022 12:39:35 -0600 Subject: [PATCH] [glyf] Fix a bug I introduced recently Pass gid to Glyph in trim_padding codepath. --- src/OT/glyf/glyf.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OT/glyf/glyf.hh b/src/OT/glyf/glyf.hh index 1f0233eba..f74513cb9 100644 --- a/src/OT/glyf/glyf.hh +++ b/src/OT/glyf/glyf.hh @@ -326,7 +326,7 @@ struct glyf_accelerator_t glyf_impl::Glyph glyph (hb_bytes_t ((const char *) this->glyf_table + start_offset, end_offset - start_offset), gid); - return needs_padding_removal ? glyf_impl::Glyph (glyph.trim_padding ()) : glyph; + return needs_padding_removal ? glyf_impl::Glyph (glyph.trim_padding (), gid) : glyph; } bool