Cache font family lookups that fail to obtain a font collection (flutter/engine#10109)

This commit is contained in:
Jason Simmons 2019-07-24 11:33:04 -07:00 committed by GitHub
parent f9ef352eed
commit 0e01137233

View File

@ -159,6 +159,7 @@ FontCollection::GetMinikinFontCollectionForFamilies(
}
// Default font family also not found. We fail to get a FontCollection.
if (minikin_families.empty()) {
font_collections_cache_[family_key] = nullptr;
return nullptr;
}
if (enable_font_fallback_) {