[webkit-changes] [WebKit/WebKit] 1e5efc: [Skia] Add support for font render properties

Carlos Garcia Campos noreply at github.com
Mon Mar 18 01:28:37 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1e5efc33fac0f5a7214e55db7af541d8f6523260
      https://github.com/WebKit/WebKit/commit/1e5efc33fac0f5a7214e55db7af541d8f6523260
  Author: Carlos Garcia Campos <cgarcia at igalia.com>
  Date:   2024-03-18 (Mon, 18 Mar 2024)

  Changed paths:
    M Source/WebCore/Headers.cmake
    M Source/WebCore/Sources.txt
    M Source/WebCore/platform/SourcesCairo.txt
    M Source/WebCore/platform/SourcesSkia.txt
    A Source/WebCore/platform/graphics/FontRenderOptions.cpp
    A Source/WebCore/platform/graphics/FontRenderOptions.h
    M Source/WebCore/platform/graphics/cairo/CairoUtilities.cpp
    M Source/WebCore/platform/graphics/cairo/CairoUtilities.h
    A Source/WebCore/platform/graphics/cairo/FontRenderOptionsCairo.cpp
    M Source/WebCore/platform/graphics/nicosia/NicosiaBuffer.cpp
    M Source/WebCore/platform/graphics/skia/FontPlatformDataSkia.cpp
    A Source/WebCore/platform/graphics/skia/FontRenderOptionsSkia.cpp
    M Source/WebCore/platform/graphics/skia/ImageBufferSkiaAcceleratedBackend.cpp
    M Source/WebCore/platform/graphics/skia/ImageBufferSkiaUnacceleratedBackend.cpp
    M Source/WebCore/platform/graphics/skia/NativeImageSkia.cpp
    M Source/WebCore/platform/graphics/skia/ShareableBitmapSkia.cpp
    M Source/WebCore/platform/graphics/skia/SkiaAcceleratedBufferPool.cpp
    M Source/WebKit/WebProcess/glib/WebProcessGLib.cpp
    M Source/WebKit/WebProcess/gtk/GtkSettingsManagerProxy.cpp

  Log Message:
  -----------
  [Skia] Add support for font render properties
https://bugs.webkit.org/show_bug.cgi?id=271112

Reviewed by Michael Catanzaro.

Set hinting, antialias and pixel geometry.

* Source/WebCore/Headers.cmake:
* Source/WebCore/Sources.txt:
* Source/WebCore/platform/SourcesCairo.txt:
* Source/WebCore/platform/SourcesSkia.txt:
* Source/WebCore/platform/graphics/FontRenderOptions.cpp: Added.
(WebCore::FontRenderOptions::singleton):
* Source/WebCore/platform/graphics/FontRenderOptions.h: Added.
(WebCore::FontRenderOptions::fontOptions const):
(WebCore::FontRenderOptions::hinting const):
(WebCore::FontRenderOptions::antialias const):
(WebCore::FontRenderOptions::subpixelOrder const):
* Source/WebCore/platform/graphics/cairo/CairoUtilities.cpp:
(WebCore::getDefaultCairoFontOptions):
(WebCore::defaultCairoFontOptions): Deleted.
(WebCore::disableCairoFontHintingForTesting): Deleted.
(WebCore::setDefaultCairoHintOptions): Deleted.
(WebCore::setDefaultCairoAntialiasOptions): Deleted.
* Source/WebCore/platform/graphics/cairo/CairoUtilities.h:
* Source/WebCore/platform/graphics/cairo/FontRenderOptionsCairo.cpp: Added.
(WebCore::FontRenderOptions::FontRenderOptions):
(WebCore::FontRenderOptions::setHinting):
(WebCore::FontRenderOptions::setAntialias):
(WebCore::FontRenderOptions::setSubpixelOrder):
(WebCore::FontRenderOptions::disableHintingForTesting):
* Source/WebCore/platform/graphics/skia/FontRenderOptionsSkia.cpp: Added.
(WebCore::FontRenderOptions::setHinting):
(WebCore::FontRenderOptions::setAntialias):
(WebCore::FontRenderOptions::setSubpixelOrder):
(WebCore::FontRenderOptions::disableHintingForTesting):
* Source/WebCore/platform/graphics/skia/NativeImageSkia.cpp:
* Source/WebKit/WebProcess/glib/WebProcessGLib.cpp:
(WebKit::WebProcess::platformInitializeWebProcess):
* Source/WebKit/WebProcess/gtk/GtkSettingsManagerProxy.cpp:
(WebKit::GtkSettingsManagerProxy::applyHintingSettings):
(WebKit::GtkSettingsManagerProxy::applyAntialiasSettings):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list