Skip to content

Commit 1ebe160

Browse files
committed
Warn about XFT and about Cairo without HarfBuzz
* configure.ac: Warn about libXFT usage. Warn about using Cairo without HarfBuzz. * etc/NEWS: Announce XFT and HarfBuzz warnings.
1 parent 75c1f93 commit 1ebe160

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

configure.ac

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5891,6 +5891,20 @@ you can continue to support by using '$0 --with-pop'.])
58915891
esac
58925892
fi
58935893

5894+
if test "${HAVE_XFT}" = yes; then
5895+
AC_MSG_WARN([This configuration uses libXft,
5896+
which has a number of font rendering issues, and is being considered for
5897+
removal in the next release of Emacs. Please consider using Cairo + HarfBuzz
5898+
instead (they are auto-detected if the relevant development headers are
5899+
installed).])
5900+
fi
5901+
5902+
if test "${HAVE_CAIRO}" = "yes" && test "${HAVE_HARFBUZZ}" = no; then
5903+
AC_MSG_WARN([This configuration uses Cairo, but not HarfBuzz. We
5904+
recommend the use of HarfBuzz when using Cairo, please install
5905+
HarfBuzz development packages.])
5906+
fi
5907+
58945908
# Let plain 'make' work.
58955909
test "$MAKE" = make || test -f makefile || cat >makefile <<EOF
58965910
.POSIX:

etc/NEWS

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,19 @@ available when HarfBuzz is supported, but will not be used by default.
4141
We strongly recommend building with HarBuzz support. 'x' is still a
4242
valid backend.
4343

44+
---
45+
** 'configure' now warns about building with libXft support.
46+
libXft is unmaintained, and causes a number of problems with modern
47+
fonts including but not limited to crashes; support for it may be
48+
removed in a future version of Emacs. Please consider using
49+
Cairo + HarfBuzz instead.
50+
51+
---
52+
** 'configure' now warns about not using HarfBuzz if using Cairo.
53+
We want to encourage people to use the most modern font features
54+
available, and this is Cairo + HarfBuzz, so 'configure' now recommends
55+
that combination.
56+
4457
---
4558
** The ftx font backend driver has been removed.
4659
It was declared obsolete in Emacs 27.1.

0 commit comments

Comments
 (0)