mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
If a new fallback font is discovered during paragraph layout, the fallback font cache in txt::FontCollection will use that font in future layouts. However, that cache is not available if the new fallback font needs to be used for other characters within the current layout. This PR adds a cache to minikin::FontCollection and checks whether fonts in the cache can handle a character before calling the fallback font provider. See https://github.com/flutter/engine/pull/13257