forked from firka/flutter
am b1f16e88: Fix native crash in Latin-1 typefaces
* commit 'b1f16e880b39439054918774f8e53da2d4d0a133': Fix native crash in Latin-1 typefaces
This commit is contained in:
@@ -75,7 +75,7 @@ FontCollection::FontCollection(const vector<FontFamily*>& typefaces) :
|
||||
mMaxChar = max(mMaxChar, instance->mCoverage->length());
|
||||
lastChar.push_back(instance->mCoverage->nextSetBit(0));
|
||||
}
|
||||
size_t nPages = mMaxChar >> kLogCharsPerPage;
|
||||
size_t nPages = (mMaxChar + kPageMask) >> kLogCharsPerPage;
|
||||
size_t offset = 0;
|
||||
for (size_t i = 0; i < nPages; i++) {
|
||||
Range dummy;
|
||||
|
||||
Reference in New Issue
Block a user