Bug 1397238 - Reset the mIsSimpleFamily flag whenever a face is added to a font family, to ensure we will re-check the available faces before making assumptions about face indexes in FindAllFontsForStyle. r=heycam

This commit is contained in:
Jonathan Kew 2017-09-08 10:32:08 +01:00
Родитель f326551e5a
Коммит b43771fc5f
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -646,6 +646,8 @@ public:
}
aFontEntry->mSkipDefaultFeatureSpaceCheck = mSkipDefaultFeatureSpaceCheck;
mAvailableFonts.AppendElement(aFontEntry);
mIsSimpleFamily = false; // CheckForSimpleFamily may set this later,
// but at this point we're not sure
}
// note that the styles for this family have been added