[cff1] Tighten up range_list_t a bit
This commit is contained in:
parent
3fbac0942d
commit
e1e359b4da
|
@ -271,12 +271,12 @@ struct range_list_t : hb_vector_t<code_pair_t>
|
|||
bool complete (unsigned int last_glyph)
|
||||
{
|
||||
bool two_byte = false;
|
||||
for (unsigned int i = (*this).length; i > 0; i--)
|
||||
unsigned count = this->length;
|
||||
for (unsigned int i = count; i; i--)
|
||||
{
|
||||
code_pair_t &pair = (*this)[i - 1];
|
||||
code_pair_t &pair = arrayZ[i - 1];
|
||||
unsigned int nLeft = last_glyph - pair.glyph - 1;
|
||||
if (nLeft >= 0x100)
|
||||
two_byte = true;
|
||||
two_byte |= nLeft >= 0x100;
|
||||
last_glyph = pair.glyph;
|
||||
pair.glyph = nLeft;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue