提交 3bda54c4 编写于 作者: M Michiharu Ariza

fixed Index::serialize

The bug was causing CharString of the last glyph corrupt
上级 16f4dc9b
......@@ -256,11 +256,13 @@ struct Index
/* serialize indices */
unsigned int offset = 1;
for (unsigned int i = 0; i < bytesArray.len; i++)
unsigned int i = 0;
for (; i < bytesArray.len; i++)
{
set_offset_at (i, offset);
offset += bytesArray[i].len;
}
set_offset_at (i, offset);
/* serialize data */
for (unsigned int i = 0; i < bytesArray.len; i++)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册