mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Cache font family lookups that fail to obtain a font collection (flutter/engine#10109)
This commit is contained in:
parent
f9ef352eed
commit
0e01137233
@ -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_) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user