提交 b98c7c3f 编写于 作者: B Behdad Esfahbod

[post] Minor

上级 5de83fab
...@@ -130,9 +130,6 @@ struct post ...@@ -130,9 +130,6 @@ struct post
if (glyph >= glyphNameIndex->len) if (glyph >= glyphNameIndex->len)
return false; return false;
if (!buf_len)
return true;
unsigned int index = glyphNameIndex->array[glyph]; unsigned int index = glyphNameIndex->array[glyph];
if (index < NUM_FORMAT1_NAMES) if (index < NUM_FORMAT1_NAMES)
{ {
...@@ -146,8 +143,7 @@ struct post ...@@ -146,8 +143,7 @@ struct post
if (index >= index_to_offset.len) if (index >= index_to_offset.len)
return false; return false;
unsigned int offset = index_to_offset[index]; unsigned int offset = index_to_offset.array[index];
const uint8_t *data = pool + offset; const uint8_t *data = pool + offset;
unsigned int name_length = *data; unsigned int name_length = *data;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册