Package Details: freetype2-macos 2.13.2-5

Git Clone URL: https://aur.archlinux.org/freetype2-macos.git (read-only, click to copy)
Package Base: freetype2-macos
Description: freetype2 with a patch to make it render text like on macOS
Upstream URL: https://www.freetype.org/
Licenses: GPL
Conflicts: freetype2
Provides: freetype2, libfreetype.so
Submitter: ryuukk
Maintainer: ryuukk
Last Packager: ryuukk
Votes: 7
Popularity: 0.81
First Submitted: 2024-03-18 11:08 (UTC)
Last Updated: 2024-03-18 12:28 (UTC)

Required by (1615)

Sources (7)

Latest Comments

Yonsy commented on 2024-11-09 22:44 (UTC)

@ryuukk which setting are you using with freetype-envision now ? NORMAL or FULL ?

Yonsy commented on 2024-10-04 15:22 (UTC) (edited on 2024-10-04 18:27 (UTC) by Yonsy)

by now is enough to update to freetype 2.13.3 and SKIP the md5sum

my PKGBUILD:

pkgname=freetype2-macos
pkgver=2.13.3
pkgrel=1
epoch=
pkgdesc="freetype2 with a patch to make it render text like on macOS"
url="https://www.freetype.org/"
arch=(
  x86_64
)
license=(GPL)
depends=(
  brotli
  bzip2
  libpng
  sh
  zlib
  harfbuzz
)
makedepends=(
  librsvg
  libx11
  meson
  qt5-base
)
source=(
  https://download-mirror.savannah.gnu.org/releases/freetype/freetype-$pkgver.tar.xz{,.sig}
  0001-Enable-table-validation-modules.patch
  0002-Enable-subpixel-rendering.patch
  0003-Enable-long-PCF-family-names.patch
  9999-macos-like.patch
  freetype2.sh
)
b2sums=('SKIP'
        'SKIP'
        '2c148694e150b3faae9dc46ead824ae6d94cfe34f2918bc9066f45bab7e6b6f77b4d4b2fee00c3d466d866e1985132cea4a774dcf1bab95409b7cf55efff01e1'
        '9598d13eae0411878c1af8e5d875c3b1fc09f4e6649edfbbf3b0a819c4c585648521f0b30ffd1318f5106cfde9c899d3db70c8ffe36dac59f3f98b5fd7dab115'
        '66deb179d1f1f4e2e35f6d50acfbacce80595d5128f5fed8c1871838c210dbf1a7173a87dd937d64997844c8f478c8f81120f71e33b9d59d980e179d103ff31c'
        'b5301c02e57d4f99c05263967833d2578b24b8eb5e4fda3809ba79f1bc4bc01ef53eb762546ff39cae43aeac734752e5e992c65ef89ab8bfff43557457bf5f4e'
        '95c72d77b2e8d0cf3443713741c5f06177b6ba6eabbdb39537ca07d5550909218d4f4e6e71c7fe9bfd175fb6ba3c4f8304c59aaa5c4f411a3c46d56b8bca385f')
validpgpkeys=(
  E30674707856409FF1948010BE6C3AAC63AD8E3F  # Werner Lemberg <wl@gnu.org>
)

prepare() {
  cd freetype-$pkgver
  patch -Np1 -i ../0001-Enable-table-validation-modules.patch
  patch -Np1 -i ../0002-Enable-subpixel-rendering.patch
  patch -Np1 -i ../0003-Enable-long-PCF-family-names.patch
  patch -Np1 -i ../9999-macos-like.patch
}

build() {
  local meson_options=(
    -D freetype2:default_library=shared
  )

  arch-meson freetype-$pkgver build "${meson_options[@]}"
  meson compile -C build
}

check() {
  meson test -C build --print-errorlogs
}

package_freetype2-macos() {
  provides=(freetype2 libfreetype.so)
  conflicts=(freetype2)
  install=freetype2.install
  backup=(etc/profile.d/freetype2.sh)

  meson install -C build --destdir="$pkgdir"
  install -Dt "$pkgdir/etc/profile.d" -m644 freetype2.sh
  install -Dt "$pkgdir/usr/share/aclocal" -m644 \
    freetype-$pkgver/builds/unix/freetype2.m4
}

ryuukk commented on 2024-10-04 14:56 (UTC)

I don't remember how to update this shit, who wants to take over this package?

I personally moved back to stock freetype with this config: https://github.com/maximilionus/freetype-envision

I get great results even with chromium

zhou13 commented on 2024-06-17 02:26 (UTC)

@VictorQueirozG Right now it only searches binary in

/opt/google/chrome-beta/chrome
/opt/google/chrome-unstable/chrome
/opt/google/chrome/chrome
/opt/vivaldi/vivaldi

Let me know the default path of Snapcraft chrome, so I can add it.

VictorQueirozG commented on 2024-06-16 23:53 (UTC)

@zhou13 Does it work even if you install Chrome through Snapcraft?

zhou13 commented on 2024-05-16 05:33 (UTC) (edited on 2024-05-16 05:34 (UTC) by zhou13)

I added an AUR package called freetype2-macos-browsers-binary-patcher so that Chrome and Vivaldi can use the same lcdfilter tap. Enjoy~

ryuukk commented on 2024-05-07 20:41 (UTC)

@gandriyko

it only work for things that doesn't ship with their own version of freetype, so chromium or appimage programs won't work unfortunately

besides, chromium has bunch of other issues i have reported, they acknowledged them but they do nothing to address for some reasons..

i even sent a PR: https://chromium-review.googlesource.com/c/chromium/src/+/5332813/

https://issues.skia.org/u/2/issues/40045101

https://issues.chromium.org/u/2/issues/40275210

gnome is bad, gtk 4 still doesn't do subpixel antialiasing, so fonts looks trash by default with their new renderer..

gandriyko commented on 2024-05-04 13:52 (UTC)

It looks very nice, but it doesn't seem to work in GTK 3, 4 applications. Works fine in KDE, Java (JetBrains), firefox (only in content but not in menu), Chromium

guiodic commented on 2024-05-02 20:56 (UTC)

Thank you, it's a very good setting!