diff --git a/engine/src/flutter/third_party/txt/src/txt/font_collection.cc b/engine/src/flutter/third_party/txt/src/txt/font_collection.cc index dfa554714b9..15f2b824392 100644 --- a/engine/src/flutter/third_party/txt/src/txt/font_collection.cc +++ b/engine/src/flutter/third_party/txt/src/txt/font_collection.cc @@ -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_) {