[webkit-changes] [WebKit/WebKit] 415a71: Cherry-pick 271007 at main (9479bf3bdea7). https://bu...

Adrian Perez noreply at github.com
Tue Nov 21 04:21:00 PST 2023


  Branch: refs/heads/webkitglib/2.42
  Home:   https://github.com/WebKit/WebKit
  Commit: 415a71ab63a6ada08e8623d3166c9ae6e4613041
      https://github.com/WebKit/WebKit/commit/415a71ab63a6ada08e8623d3166c9ae6e4613041
  Author: Adrian Perez de Castro <aperez at igalia.com>
  Date:   2023-11-21 (Tue, 21 Nov 2023)

  Changed paths:
    M Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp

  Log Message:
  -----------
  Cherry-pick 271007 at main (9479bf3bdea7). https://bugs.webkit.org/show_bug.cgi?id=265182

    [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




More information about the webkit-changes mailing list