if (seg->idRangeOffset == 0xFFFF)
for (c = seg->startCount; c <= seg->endCount; c++)
{
- glyph_id = c + seg->idDelta;
+ glyph_id = (c + seg->idDelta) % 0x10000;
cmap->unicode_table[c] = glyph_id;
if (glyph_id > max_glyph_id)
max_glyph_id = glyph_id;
if (internal_data->table_info[i].stream)
free_stream (internal_data->table_info[i].stream);
+ for (; app_data; app_data = app_data->next)
+ if (app_data->data && app_data->freer)
+ app_data->freer (app_data->data);
+
while (memrec)
{
OTF_MemoryRecord *next = memrec->next;
memrec = next;
}
- for (; app_data; app_data = app_data->next)
- if (app_data->data && app_data->freer)
- app_data->freer (app_data->data);
free (internal_data);
}
if (otf->filename)