fix get_sid crash
This commit is contained in:
parent
4c4e08a1ef
commit
61707266a3
|
@ -1279,7 +1279,7 @@ struct cff1
|
||||||
/* fill glyph_names */
|
/* fill glyph_names */
|
||||||
for (hb_codepoint_t gid = 0; gid < num_glyphs; gid++)
|
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_t gname;
|
||||||
gname.sid = sid;
|
gname.sid = sid;
|
||||||
if (sid < cff1_std_strings_length)
|
if (sid < cff1_std_strings_length)
|
||||||
|
|
Loading…
Reference in New Issue