Merge pull request #2032 from googlefonts/collect_unicodes

Don't include codepoint 0 in the results of collect_unicodes.
This commit is contained in:
Behdad Esfahbod 2019-10-28 13:01:34 -07:00 committed by GitHub
commit 2714dc31b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -1324,7 +1324,13 @@ struct cmap
} }
void collect_unicodes (hb_set_t *out) const void collect_unicodes (hb_set_t *out) const
{ subtable->collect_unicodes (out); } {
subtable->collect_unicodes (out);
// Never include unicode codepoint 0 in the set.
// This is assumed to be the notdef glyph.
out->del (0);
}
void collect_variation_selectors (hb_set_t *out) const void collect_variation_selectors (hb_set_t *out) const
{ subtable_uvs->collect_variation_selectors (out); } { subtable_uvs->collect_variation_selectors (out); }
void collect_variation_unicodes (hb_codepoint_t variation_selector, void collect_variation_unicodes (hb_codepoint_t variation_selector,