[webkit-changes] [WebKit/WebKit] 3172ac: [GTK] Honor GtkSettings:gtk-font-rendering setting

Carlos Garcia Campos noreply at github.com
Mon Oct 21 05:15:53 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3172ac2bd7ab8d25a76213d488e515ef0b45baf7
      https://github.com/WebKit/WebKit/commit/3172ac2bd7ab8d25a76213d488e515ef0b45baf7
  Author: Carlos Garcia Campos <cgarcia at igalia.com>
  Date:   2024-10-21 (Mon, 21 Oct 2024)

  Changed paths:
    M Source/WebCore/platform/glib/SystemSettings.cpp
    M Source/WebCore/platform/glib/SystemSettings.h
    M Source/WebCore/platform/graphics/FontRenderOptions.h
    M Source/WebCore/platform/graphics/skia/FontPlatformDataSkia.cpp
    M Source/WebCore/platform/graphics/skia/FontRenderOptionsSkia.cpp
    M Source/WebKit/Shared/glib/SystemSettings.serialization.in
    M Source/WebKit/UIProcess/glib/SystemSettingsManagerProxy.cpp
    M Source/WebKit/UIProcess/glib/SystemSettingsManagerProxy.h
    M Source/WebKit/UIProcess/gtk/SystemSettingsManagerProxyGtk.cpp
    M Source/WebKit/WebProcess/glib/SystemSettingsManager.cpp

  Log Message:
  -----------
  [GTK] Honor GtkSettings:gtk-font-rendering setting
https://bugs.webkit.org/show_bug.cgi?id=281665

Reviewed by Adrian Perez de Castro.

And ignore the font system settings when rendering mode is set to automatic.

* Source/WebCore/platform/glib/SystemSettings.cpp:
(WebCore::SystemSettings::updateSettings):
* Source/WebCore/platform/glib/SystemSettings.h:
(WebCore::SystemSettings::followFontSystemSettings const):
* Source/WebCore/platform/graphics/FontRenderOptions.h:
(WebCore::FontRenderOptions::setFollowSystemSettings):
(WebCore::FontRenderOptions::hinting const): Deleted.
(WebCore::FontRenderOptions::antialias const): Deleted.
(WebCore::FontRenderOptions::subpixelOrder const): Deleted.
* Source/WebCore/platform/graphics/skia/FontRenderOptionsSkia.cpp:
(WebCore::FontRenderOptions::hinting const):
(WebCore::FontRenderOptions::antialias const):
(WebCore::FontRenderOptions::subpixelOrder const):
* Source/WebKit/Shared/glib/SystemSettings.serialization.in:
* Source/WebKit/UIProcess/glib/SystemSettingsManagerProxy.cpp:
(WebKit::SystemSettingsManagerProxy::settingsDidChange):
* Source/WebKit/UIProcess/glib/SystemSettingsManagerProxy.h:
* Source/WebKit/UIProcess/gtk/SystemSettingsManagerProxyGtk.cpp:
(WebKit::SystemSettingsManagerProxy::followFontSystemSettings const):
(WebKit::SystemSettingsManagerProxy::SystemSettingsManagerProxy):
* Source/WebKit/WebProcess/glib/SystemSettingsManager.cpp:
(WebKit::SystemSettingsManager::SystemSettingsManager):

Canonical link: https://commits.webkit.org/285502@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