mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[glyf] Empty glyphs need no padding
This commit is contained in:
parent
73c18d1d42
commit
65a7d8c6f0
1 changed files with 1 additions and 11 deletions
|
@ -29,17 +29,7 @@ struct SubsetGlyph
|
|||
if (length () == 0)
|
||||
{
|
||||
/* Fast path for retain-gid holes. */
|
||||
|
||||
unsigned int pad_length = use_short_loca ? padding () : 0;
|
||||
DEBUG_MSG (SUBSET, nullptr, "serialize empty glyph, pad %u", pad_length);
|
||||
|
||||
HBUINT8 pad;
|
||||
pad = 0;
|
||||
while (pad_length > 0)
|
||||
{
|
||||
c->embed (pad);
|
||||
pad_length--;
|
||||
}
|
||||
DEBUG_MSG (SUBSET, nullptr, "serialize empty glyph");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue