Skip to content

Commit

Permalink
cairo: ensure freetype and therefore fontconfig available
Browse files Browse the repository at this point in the history
This re-allows the optional use of fontconfig on macOS
via the PANGOCAIRO_BACKEND environment variable.

(cairo v1.18.0 switched to a default of coretext-only.)
  • Loading branch information
lovell committed Sep 2, 2024
1 parent f88ede1 commit 27c6428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/lin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ mkdir ${DEPS}/cairo
$CURL https://cairographics.org/releases/cairo-${VERSION_CAIRO}.tar.xz | tar xJC ${DEPS}/cairo --strip-components=1
cd ${DEPS}/cairo
meson setup _build --default-library=static --buildtype=release --strip --prefix=${TARGET} ${MESON} \
${LINUX:+-Dquartz=disabled} ${DARWIN:+-Dquartz=enabled} -Dtee=disabled -Dxcb=disabled -Dxlib=disabled -Dzlib=disabled \
${LINUX:+-Dquartz=disabled} ${DARWIN:+-Dquartz=enabled} -Dfreetype=enabled -Dtee=disabled -Dxcb=disabled -Dxlib=disabled -Dzlib=disabled \
-Dtests=disabled -Dspectre=disabled -Dsymbol-lookup=disabled
meson install -C _build --tag devel

Expand Down

2 comments on commit 27c6428

@kleisauke
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lovell
Copy link
Owner Author

@lovell lovell commented on 27c6428 Sep 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, failed with the error:

meson.build:451:14: ERROR: Problem encountered: cairo-ft does not have the required FontConfig support

...and hopefully fixed with commit 273d659

Please sign in to comment.