mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
am b1f16e88: Fix native crash in Latin-1 typefaces
* commit 'b1f16e880b39439054918774f8e53da2d4d0a133': Fix native crash in Latin-1 typefaces
This commit is contained in:
commit
b69befa658
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user