mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[subset/cff1] Optimize CFF::CFF1StringIndex::serialize
This commit is contained in:
parent
ada1e9a924
commit
fd13aa9eff
1 changed files with 2 additions and 6 deletions
|
@ -650,12 +650,8 @@ struct CFF1StringIndex : CFF1Index
|
|||
byte_str_array_t bytesArray;
|
||||
if (!bytesArray.resize (sidmap.get_population ()))
|
||||
return_trace (false);
|
||||
for (unsigned int i = 0; i < strings.count; i++)
|
||||
{
|
||||
hb_codepoint_t j = sidmap[i];
|
||||
if (j != HB_MAP_VALUE_INVALID)
|
||||
bytesArray[j] = strings[i];
|
||||
}
|
||||
for (auto _ : sidmap)
|
||||
bytesArray[_.second] = strings[_.first];
|
||||
|
||||
bool result = CFF1Index::serialize (c, bytesArray);
|
||||
return_trace (result);
|
||||
|
|
Loading…
Add table
Reference in a new issue