[cmap] Speed up DefaultUVS::copy
This commit is contained in:
parent
8eadb83640
commit
dabbf13d40
|
@ -930,10 +930,11 @@ struct DefaultUVS : SortedArray32Of<UnicodeValueRange>
|
|||
|
||||
for (const UnicodeValueRange& _ : as_array ())
|
||||
{
|
||||
for (const unsigned addcnt : hb_range ((unsigned) _.additionalCount + 1))
|
||||
unsigned curEntry = (unsigned) _.startUnicodeValue - 1;
|
||||
unsigned end = curEntry + _.additionalCount + 2;
|
||||
|
||||
for (; unicodes->next (&curEntry) && curEntry < end;)
|
||||
{
|
||||
unsigned curEntry = (unsigned) _.startUnicodeValue + addcnt;
|
||||
if (!unicodes->has (curEntry)) continue;
|
||||
count += 1;
|
||||
if (lastCode == HB_MAP_VALUE_INVALID)
|
||||
lastCode = curEntry;
|
||||
|
|
Loading…
Reference in New Issue