mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-26 01:11:25 +01:00
[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:
1 parent
2fb670a528
commit
87cf09bd2c
1 file changed
+6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user