mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
Bug 1505966 - Bail out of using DWrite fonts if we failed to get the system collection. r=lsalzman
This commit is contained in:
parent
2d73be3784
commit
b250a10034
@ -1072,7 +1072,7 @@ gfxDWriteFontList::InitFontListForPlatform()
|
||||
mSystemFonts = Factory::GetDWriteSystemFonts(true);
|
||||
NS_ASSERTION(mSystemFonts != nullptr, "GetSystemFontCollection failed!");
|
||||
|
||||
if (FAILED(hr)) {
|
||||
if (!mSystemFonts) {
|
||||
Telemetry::Accumulate(Telemetry::DWRITEFONT_INIT_PROBLEM,
|
||||
uint32_t(errSystemFontCollection));
|
||||
return NS_ERROR_FAILURE;
|
||||
|
Loading…
Reference in New Issue
Block a user