Ref<Font> FontCache::lastResortFallbackFont(const FontDescription& fontDescription) { // We want to return a fallback font here, otherwise the logic preventing FontConfig // matches for non-fallback fonts might return 0. See isFallbackFontAllowed. static AtomicString timesStr("serif"); return *fontForFamily(fontDescription, timesStr, false); }
Ref<Font> FontCache::lastResortFallbackFont(const FontDescription& fontDescription) { AtomicString name("systemfont"); return fontForFamily(fontDescription, name, false).releaseNonNull(); }