forked from firka/flutter
Cache font family lookups that fail to obtain a font collection (flutter/engine#10109)
This commit is contained in:
@@ -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_) {
|
||||
|
||||
Reference in New Issue
Block a user