fix get_sid crash

This commit is contained in:
blueshade7 2019-11-19 17:09:12 -08:00 committed by Behdad Esfahbod
parent 4c4e08a1ef
commit 61707266a3
1 changed files with 1 additions and 1 deletions

View File

@ -1279,7 +1279,7 @@ struct cff1
/* fill glyph_names */
for (hb_codepoint_t gid = 0; gid < num_glyphs; gid++)
{
hb_codepoint_t sid = charset->get_sid (gid, num_glyphs);
hb_codepoint_t sid = glyph_to_sid (gid);
gname_t gname;
gname.sid = sid;
if (sid < cff1_std_strings_length)