[cmap] Speed up Format12/13 collect_mapping

This commit is contained in:
Behdad Esfahbod 2023-11-10 14:08:03 -07:00
parent ae6ea6f4b7
commit d9357a1a67

View file

@ -769,9 +769,9 @@ struct CmapSubtableLongSegmented
mapping->alloc (mapping->get_population () + end - start + 1);
unicodes->add_range (start, end);
for (unsigned cp = start; cp <= end; cp++)
{
unicodes->add (cp);
mapping->set (cp, gid);
gid += T::increment;
}