[subset/loca] Fix up for retaingid null glyphs at the end

We currently don't have those, but in case we add.
This commit is contained in:
Behdad Esfahbod committed 2023-06-03 21:00:56 -06:00
1 parent 2fb670a528
commit 87cf09bd2c
1 file changed
+6
+6
View File
@@ -44,6 +44,12 @@ _write_loca (IteratorIn&& it,
last++; // Skip over gid
}
unsigned num_glyphs = num_offsets - 1;
for (; last < num_glyphs; last++)
{
DEBUG_MSG (SUBSET, nullptr, "loca entry empty offset %u", offset);
*dest++ = value;
}
}
static bool