mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 07:21:06 +01:00
[cmap] Minor
This commit is contained in:
1 parent
1dcf5fb038
commit
c8cfb702e9
1 file changed
+5
-3
@@ -292,11 +292,13 @@ struct CmapSubtableFormat4
|
||||
}
|
||||
inline void collect_unicodes (hb_set_t *out) const
|
||||
{
|
||||
for (unsigned int i = 0; i < this->segCount; i++)
|
||||
unsigned int count = this->segCount;
|
||||
if (count && this->startCount[count - 1] == 0xFFFFu)
|
||||
count--; /* Skip sentinel segment. */
|
||||
for (unsigned int i = 0; i < count; i++)
|
||||
{
|
||||
/* XXX This does NOT skip over chars mapping to gid0... */
|
||||
if (this->startCount[i] != 0xFFFFu || this->endCount[i] != 0xFFFFu) // Skip the last segment (0xFFFF)
|
||||
out->add_range (this->startCount[i], this->endCount[i]);
|
||||
out->add_range (this->startCount[i], this->endCount[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user