GNU bug report logs - #79249
30.2; Fonts in Emacs 30.2 vs 30.1

Previous Next

Package: emacs;

Reported by: Jeremy Bryant <jb <at> jeremybryant.net>

Date: Fri, 15 Aug 2025 20:30:02 UTC

Severity: normal

Found in version 30.2

Done: Jeremy Bryant <jb <at> jeremybryant.net>

To reply to this bug, email your comments to 79249 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#79249; Package emacs. (Fri, 15 Aug 2025 20:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jeremy Bryant <jb <at> jeremybryant.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 15 Aug 2025 20:30:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jeremy Bryant <jb <at> jeremybryant.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.2; Fonts in Emacs 30.2 vs 30.1
Date: Fri, 15 Aug 2025 21:28:50 +0100
System: GNU/Linux, compiling Emacs 30.2 from the release tarball.

My usual init file loads a font in Emacs 30.1 which isn't found by Emacs
30.2.
It appears that the font-family-list is much smaller.
This is on the same system.

Emacs 30.1:
(length (font-family-list))
3719

Emacs 30.2:
(length (font-family-list))
151

and then (set-frame-font ) says font not available.


Is the font subsystem different in 30.2?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79249; Package emacs. (Sat, 16 Aug 2025 06:28:01 GMT) Full text and rfc822 format available.

Message #8 received at 79249 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jeremy Bryant <jb <at> jeremybryant.net>
Cc: 79249 <at> debbugs.gnu.org
Subject: Re: bug#79249: 30.2; Fonts in Emacs 30.2 vs 30.1
Date: Sat, 16 Aug 2025 09:27:24 +0300
> Date: Fri, 15 Aug 2025 21:28:50 +0100
> From:  Jeremy Bryant via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> 
> System: GNU/Linux, compiling Emacs 30.2 from the release tarball.
> 
> My usual init file loads a font in Emacs 30.1 which isn't found by Emacs
> 30.2.
> It appears that the font-family-list is much smaller.
> This is on the same system.
> 
> 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.

Also, did you build both Emacs 30.1 and 30.2 with the same
configure-time options and the same optional features?

> Is the font subsystem different in 30.2?

It isn't supposed to be different, and on my system I get the same
length of the list.

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?

If nothing else gives a clue, can you bisect on the release branch
between the "emacs-30.1" and "emacs-30.2" tags?  I've looked at the
commit log message and couldn't find any change which could affect
that, but maybe it's something completely unintended and not obvious.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79249; Package emacs. (Mon, 18 Aug 2025 20:20:02 GMT) Full text and rfc822 format available.

Message #11 received at 79249 <at> debbugs.gnu.org (full text, mbox):

From: Jeremy Bryant <jb <at> jeremybryant.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 79249 <at> debbugs.gnu.org
Subject: Re: bug#79249: 30.2; Fonts in Emacs 30.2 vs 30.1
Date: Mon, 18 Aug 2025 21:19:28 +0100
Eli Zaretskii <eliz <at> gnu.org> 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.

> Also, did you build both Emacs 30.1 and 30.2 with the same
> configure-time options and the same optional features?

Yes, the same.

The problem is with emacs -Q
It is the same config on both 30.1 and 30.2

./configure CFLAGS='-O2 -g3' --with-native-compilation=aot --with-x-toolkit=lucid


>> Is the font subsystem different in 30.2?
>
> It isn't supposed to be different, and on my system I get the same
> length of the list.
>
> 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?

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

OTOH, it could well be system-specific.  The system underwent an upgrade from
Debian 12 to Debian 13, otherwise the problem between 30.2 and 30.1 is
occurring on this same system.


> If nothing else gives a clue, can you bisect on the release branch
> between the "emacs-30.1" and "emacs-30.2" tags?  I've looked at the
> commit log message and couldn't find any change which could affect
> that, but maybe it's something completely unintended and not obvious.

Thanks, for the ideas, I'll keep investigating.

In the meantime, details below.






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

Important settings:
  value of $LANG: en_GB.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
()  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util text-property-search mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date subr-x
cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric
uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset
image regexp-opt fringe tabulated-list replace newcomment text-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify
dynamic-setting x-toolkit x multi-tty move-toolbar make-network-process
native-compile emacs)

Memory information:
((conses 16 50465 9464) (symbols 48 5828 0) (strings 32 15059 1743)
 (string-bytes 1 419662) (vectors 16 9630)
 (vector-slots 8 164629 10566) (floats 8 24 2) (intervals 56 260 2)
 (buffers 992 10))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79249; Package emacs. (Tue, 19 Aug 2025 10:59:01 GMT) Full text and rfc822 format available.

Message #14 received at 79249 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jeremy Bryant <jb <at> jeremybryant.net>
Cc: 79249 <at> debbugs.gnu.org
Subject: Re: bug#79249: 30.2; Fonts in Emacs 30.2 vs 30.1
Date: Tue, 19 Aug 2025 13:57:39 +0300
> From: Jeremy Bryant <jb <at> jeremybryant.net>
> Cc: 79249 <at> debbugs.gnu.org
> Date: Mon, 18 Aug 2025 21:19:28 +0100
> 
> Eli Zaretskii <eliz <at> gnu.org> 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?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79249; Package emacs. (Tue, 19 Aug 2025 20:02:01 GMT) Full text and rfc822 format available.

Message #17 received at 79249 <at> debbugs.gnu.org (full text, mbox):

From: Jeremy Bryant <jb <at> jeremybryant.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 79249 <at> debbugs.gnu.org
Subject: Re: bug#79249: 30.2; Fonts in Emacs 30.2 vs 30.1
Date: Tue, 19 Aug 2025 21:01:21 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

>> 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?

Thanks for the suggestion, indeed I compared both results and there were
some missing build dependencies (which did include harfbuzz, thanks).

Ultimately this was not a bug.

Closing.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79249; Package emacs. (Tue, 19 Aug 2025 20:04:02 GMT) Full text and rfc822 format available.

Message #20 received at 79249 <at> debbugs.gnu.org (full text, mbox):

From: Jeremy Bryant <jb <at> jeremybryant.net>
To: Eli Zaretskii <eliz <at> gnu.org>, 79249-done <at> debbugs.gnu.org
Cc: 79249 <at> debbugs.gnu.org
Subject: Re: bug#79249: 30.2; Fonts in Emacs 30.2 vs 30.1
Date: Tue, 19 Aug 2025 21:03:38 +0100
Jeremy Bryant <jb <at> jeremybryant.net> writes:

> Ultimately this was not a bug.
>
> Closing.




Reply sent to Jeremy Bryant <jb <at> jeremybryant.net>:
You have taken responsibility. (Tue, 19 Aug 2025 20:04:03 GMT) Full text and rfc822 format available.

Notification sent to Jeremy Bryant <jb <at> jeremybryant.net>:
bug acknowledged by developer. (Tue, 19 Aug 2025 20:04:03 GMT) Full text and rfc822 format available.

This bug report was last modified 24 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.