[webkit-changes] [WebKit/WebKit] ec5dd8: [FreeType] Use builtin WOFF2 support

Don Olmstead noreply at github.com
Thu Jun 1 16:06:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ec5dd8737c21fc12b7e662e0cb8a5ef0e76998a6
      https://github.com/WebKit/WebKit/commit/ec5dd8737c21fc12b7e662e0cb8a5ef0e76998a6
  Author: Don Olmstead <don.olmstead at sony.com>
  Date:   2023-06-01 (Thu, 01 Jun 2023)

  Changed paths:
    M Source/WTF/wtf/PlatformHave.h
    M Source/WebCore/platform/graphics/WOFFFileFormat.cpp
    M Source/WebCore/platform/graphics/WOFFFileFormat.h
    M Source/WebCore/platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp
    M Source/WebKit/WebProcess/EntryPoint/playstation/WebProcessMain.cpp
    M Source/cmake/OptionsPlayStation.cmake
    A Source/cmake/WOFF2Checks.cmake

  Log Message:
  -----------
  [FreeType] Use builtin WOFF2 support
https://bugs.webkit.org/show_bug.cgi?id=213862

Reviewed by Michael Catanzaro.

FreeType v2.10.2 added native support for WOFF2. Add a CMake check to
verify that the support was compiled in. Enable this support for the
PlayStation port and make sure to load the brotli module if needed.

The only function used from `WOFFFileFormat.h` is
`convertWOFFToSfntIfNecessary` so only expose that. Clean up the
implementation of `WOFFFileFormat.cpp` to reflect that.

* Source/WTF/wtf/PlatformHave.h:
* Source/WebCore/platform/graphics/WOFFFileFormat.cpp:
(WebCore::convertWOFFToSfntIfNecessary):
* Source/WebCore/platform/graphics/WOFFFileFormat.h:
* Source/WebCore/platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp:
(WebCore::FontCustomPlatformData::supportsFormat):
* Source/WebKit/WebProcess/EntryPoint/playstation/WebProcessMain.cpp:
(main):
* Source/cmake/OptionsPlayStation.cmake:
* Source/cmake/WOFF2Checks.cmake: Added.

Canonical link: https://commits.webkit.org/264815@main




More information about the webkit-changes mailing list