зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1649073 - Bail out of InitSharedFontListForPlatform if we fail to get the dwrite system font collection. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D81494
This commit is contained in:
Родитель
f682de0a62
Коммит
a02ceb7081
|
@ -1302,6 +1302,11 @@ void gfxDWriteFontList::InitSharedFontListForPlatform() {
|
|||
|
||||
mSystemFonts = Factory::GetDWriteSystemFonts(true);
|
||||
NS_ASSERTION(mSystemFonts != nullptr, "GetSystemFontCollection failed!");
|
||||
if (!mSystemFonts) {
|
||||
Telemetry::Accumulate(Telemetry::DWRITEFONT_INIT_PROBLEM,
|
||||
uint32_t(errSystemFontCollection));
|
||||
return;
|
||||
}
|
||||
#ifdef MOZ_BUNDLED_FONTS
|
||||
mBundledFonts = CreateBundledFontsCollection(factory);
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче