mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
am 72fe9422: Fix native crash in Latin-1 typefaces
* commit '72fe9422c869b7878240a23e4650d9d90edb1c2a': Fix native crash in Latin-1 typefaces
This commit is contained in:
commit
9d44749a5d
@ -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