Skip to content

Commit

Permalink
Update ttfParser.h
Browse files Browse the repository at this point in the history
  • Loading branch information
kv01 committed Jul 29, 2021
1 parent fa7fc96 commit 8a95cba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ttfParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ namespace TTFFontParser {
}
const auto current_name_record_index = uint64_t(nameRecord[i].platformID) << 32 | (uint64_t(nameRecord[i].encodingID) << 16) | (uint64_t(nameRecord[i].languageID));
auto& current_name_record = names[current_name_record_index];
current_name_record.resize(25);
if (!current_name_record.size())
current_name_record.resize(25);
current_name_record[nameRecord[i].nameID].assign(new_name_string, string_length);
delete[] new_name_string;
}
Expand Down

0 comments on commit 8a95cba

Please sign in to comment.