Subject: 29.0.50; Current master MacOS, cannot set default font. Always Helvetica is chosen

From: Uwe Brauer <[email-masked]>
Date: Sat, 09 Apr 2022 21:22:55 +0200

Hi

Steps to reproduce this behavior.

    1. Compile and install the latest master under MacOS as Emacs.app

    2. Start the app from the command line via emacs -Q
       it sees you need to have script, say called emacs29,  that looks like
       #!/bin/sh
        /Applications/Emacs29.app/Contents/MacOS/Emacs "$@"

    3. Either run customize-face select default: you will see:

For help using this buffer, see Easy Customization in the Emacs manual.

                                          Search 

Operate on all settings in this buffer:
 Revert...   Apply   Apply and Save 

Hide Default face: [sample]
    State : SAVED and set.
   Basic default face.
   [X] Font Family: Helvetica
   [X] Font Foundry: nil
   [X] Width: Value Menu normal
   [X] Height: Value Menu Height in 1/10 pt: 180
   [X] Weight: Value Menu medium
   [X] Slant: Value Menu normal
   [X] Underline: Value Menu Off
   [X] Overline: Value Menu Off
   [X] Strike-through: Value Menu Off
   [X] Box around text: Value Menu Off
   [X] Inverse-video: Value Menu Off
   [X] Foreground: black                                        Choose   (sample)
   [X] Background: grey98                                       Choose   (sample)
   [X] Stipple: Value Menu None
   [X] Extend: Value Menu Off
   [X] Inherit:
       INS
   Show All Attributes

And Helvetica cannot be changed. You can also use the menu option select default font, and will be faced with the same problem.

The problem does not show up for emacs28 or emacs27

Regards

Uwe Brauer 

In GNU Emacs 29.0.50 (build 1, x86_64-apple-darwin19.6.0, NS appkit-1894.60 Version 10.15.7 (Build 19H1824))
 of 2022-04-09 built on Atrahasis
Repository revision: ac2708bf6f83dfb965694381c4e9d0c71f61bd0c
Repository branch: master
Windowing system distributor 'Apple', version 10.3.1894
System Description:  Mac OS X 10.15.7

Configured using:
 'configure --with-ns --without-pop --with-mailutils'

Configured features:
ACL DBUS GLIB GNUTLS LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG
RSVG SQLITE3 THREADS TOOLKIT_SCROLL_BARS WEBP XIM ZLIB

Important settings:
  value of $LC_ALL: en_US.UTF-8
  value of $LC_CTYPE: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  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
  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 rmc puny
dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg
rfc6068 epg-config gnus-util text-property-search time-date seq gv
subr-x byte-opt bytecomp byte-compile cconv mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs
cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks
lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize
mule-util term/common-win 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 simple cl-generic 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 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 kqueue cocoa ns
lcms2 multi-tty make-network-process emacs)

Memory information:
((conses 16 144770 7630)
 (symbols 48 30719 1)
 (strings 32 65642 2124)
 (string-bytes 1 1179965)
 (vectors 16 12271)
 (vector-slots 8 176712 8963)
 (floats 8 20 55)
 (intervals 56 315 0)
 (buffers 992 11))