Subject: Re: bug#79249: 30.2; Fonts in Emacs 30.2 vs 30.1

From: Eli Zaretskii <[email-masked]>
Date: Tue, 19 Aug 2025 13:57:39 +0300

> From: Jeremy Bryant <[email-masked]>
> Cc: [email-masked]
> Date: Mon, 18 Aug 2025 21:19:28 +0100
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> >> Emacs 30.1:
> >> (length (font-family-list))
> >> 3719
> >> 
> >> Emacs 30.2:
> >> (length (font-family-list))
> >> 151
> >
> > Is this in "emacs -Q"?  If so, what is your Emacs configuration?  You
> > haven't posted any of the details collected by report-emacs-bug about
> > your platform and Emacs build, so it's hard to think about possible
> > reasons.
> 
> True, the initial bug report wasn't complete and truncated due to the
>   mailer.  See full details below.

Hmm...

> > Are you sure this is not some local configuration issue related to how
> > Fontconfig (assuming your build uses it) reports fonts to Emacs?  Or
> > maybe something changed on your system between these two builds?
> 
> What is Fontconfig?

It's a package that provides a library Emacs uses to access fonts and
their properties and capabilities.  Given your compiled-in features
(see below), I'm not sure your build uses it.

> Incidentally, I observe, it seems the code font-family-list is
> frame-specific code, so perhaps so wider frame code was changed.

Didn't see anything pertinent in that direction, either.

> In GNU Emacs 30.2 (build 2, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll
>  bars) of 2025-08-15 built on 
> Windowing system distributor 'The X.Org Foundation', version 11.0.12101016
> System Description: Debian GNU/Linux 13 (trixie)
> 
> Configured using:
>  'configure 'CFLAGS=-O2 -g3' --with-native-compilation=aot
>  --with-x-toolkit=lucid'
> 
> Configured features:
> ACL DBUS GIF GMP GNUTLS GPM JPEG LIBSELINUX LIBSYSTEMD LIBXML2 MODULES
> NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND THREADS TIFF
> TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XAW3D XDBE XIM XPM LUCID ZLIB

??No HARFBUZZ and no XFT?  What does

  M-: (frame-parameter nil 'font-backend) RET

produce?  Do you see exactly the same list of features in Emacs 30.1
you have, and the same result of the above evaluation?