Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FreeType] Do not special case the "sans" font family name
https://bugs.webkit.org/show_bug.cgi?id=265182 Reviewed by Carlos Garcia Campos. Do not consider "sans" a generic font family name, as it is not one according to the CSS spec. This avoids shortcuts in the font matching algorithm, which leads to picking a better font fallbacks instead if the FontConfig configuration has odd bits like symbol fonts listed as preferred in order to make sure symbols (e.g. emoji or PUA glyphs) from it picked preferably to symbols from the actual font to be used. * Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp: (WebCore::isCommonlyUsedGenericFamily): Remove match on the "sans" font family name. Canonical link: https://commits.webkit.org/271007@main
- Loading branch information