[trak] Fix extrapolation at end side

This commit is contained in:
Behdad Esfahbod 2018-10-19 11:00:20 -07:00
parent 2352cc3539
commit 79b6356155
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ struct TrackData
/* TODO bfind() */
hb_array_t<Fixed> size_table ((base+sizeTable).arrayZ, sizes);
unsigned int size_index;
for (size_index = 0; size_index < sizes; size_index++)
for (size_index = 0; size_index < sizes - 1; size_index++)
if (size_table[size_index].to_float () >= csspx)
break;