mirror of
https://github.com/servo/servo
synced 2026-05-10 17:12:23 +02:00
Store a list of recently used fallbacks in the `FontGroups`, keyed by `lang` property and the detected `UnicodeBlock` and `Script` of the character in question. This should mean that less work is done when switching between falling back and not falling back. In addition, this will allow better caching of `FontRef`s that come directly from the platform font backend -- something necessary for the next generation font fallback code. Testing: This should not change rendering output so is covered by existing tests. It might have a minor affect on performance. Fixes: This is part of #41426. Signed-off-by: Martin Robinson <mrobinson@igalia.com>