gtk4: Set grayscale antialias again

GPU-accelerated GSK renderers don't support RGB / subpixel antialiasing,
so it doesn't make much sense to use Cairo fonts with subpixel antialias.
That helped with GDI fonts because grayscale rendering of Cairo GDI fonts
looks pretty bad. Now that Pango uses Cairo DWrite fonts we can drop the
patch.
This commit is contained in:
Luca Bacci
2025-05-09 21:48:42 +02:00
committed by Christoph Reiter
parent 955dcb2b90
commit a1e4c244d2

View File

@@ -5,7 +5,7 @@ pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}"
"${MINGW_PACKAGE_PREFIX}-${_realname}-media-gstreamer")
pkgver=4.18.5
pkgrel=1
pkgrel=2
pkgdesc="GObject-based multi-platform GUI toolkit (v4) (mingw-w64)"
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
@@ -39,20 +39,14 @@ depends=("${MINGW_PACKAGE_PREFIX}-cc-libs"
"${MINGW_PACKAGE_PREFIX}-gtk-update-icon-cache"
"${MINGW_PACKAGE_PREFIX}-shared-mime-info")
source=("https://download.gnome.org/sources/gtk/${pkgver:0:4}/gtk-${pkgver}.tar.xz"
"https://gitlab.gnome.org/GNOME/gtk/-/commit/b569470b87d143d30c2388046c9a6450696f19b8.patch"
"001-fix-font-rendering.patch")
sha256sums=('bb5267a062f5936947d34c9999390a674b0b2b0d8aa3472fe0d05e2064955abc'
'50e6ac71f2081f80d334a5be5c8c49b9c1c3fab001c1f4ca0f2556d7f2ec92ed'
'a2c6e3350bd9c1744da6b7714b25cbd419645b731435f7d295a9f99da3c1479f')
prepare() {
cd gtk-${pkgver}
# https://github.com/msys2/MINGW-packages/pull/20311#issuecomment-2014971531
patch -R -Np1 -i ../b569470b87d143d30c2388046c9a6450696f19b8.patch
# Needed since https://gitlab.gnome.org/GNOME/gtk/-/commit/5f7cab4632c93acb3c7c818b5c69e92d657fe8de
# otherwise the revert above is ignored too
# Re-enables font hinting
patch -Np1 -i ../001-fix-font-rendering.patch
}