all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Font setting issue in recent emacs dev version
@ 2022-10-29  3:10 Tim Cross
  2022-10-29  6:50 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Tim Cross @ 2022-10-29  3:10 UTC (permalink / raw)
  To: Emacs developers

[-- Attachment #1: Type: text/plain, Size: 3112 bytes --]

Emacs developers

Have encountered a font issue in recent dev emacs and wanted to verify it
isn't due to a known change before creating a bug report.

The basic issue is that setting a default font in my init file doesn't seem
to work. However, executing the same code in the scratch buffer after boot
does set the font. This problem was encountered today after pulling from
current HEAD. The previous version, from just after eglot was merged, works
fine, so it seems to be due to something which has changed in the last
couple of weeks.

I have an init.el file which consists of only

(set-face-attribute 'default nil :family "Victor Mono" :height 280 :weight
'light)

(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )

Running current HEAD version I get the following for describe-face default

Face: default (sample) (customize this face)

Documentation:
Basic default face.

Defined in ‘faces.el’.


           Family: Noto Sans Mono
          Foundry: GOOG
            Width: normal
           Height: 158
           Weight: regular
            Slant: normal
       Foreground: black
DistantForeground: unspecified
       Background: white
        Underline: nil
         Overline: nil
   Strike-through: nil
              Box: nil
          Inverse: nil
          Stipple: nil
             Font: #<font-object -GOOG-Noto Sans
Mono-regular-normal-normal-*-21-*-*-*-*-0-iso10646-1>
          Fontset: -GOOG-Noto Sans
Mono-regular-normal-normal-*-21-*-*-*-*-0-fontset-startup
          Extend: nil
          Inherit: nil

With Emacs built from the version after merge of eglot
(rev. 83fbda715973f57dc49fe0) and same init.el file, describe-face default
gives me

Face: default (sample) (customize this face)

Documentation:
Basic default face.

Defined in ‘faces.el’.


           Family: Victor Mono
          Foundry: UKWN
            Width: normal
           Height: 279
           Weight: light
            Slant: normal
       Foreground: black
DistantForeground: unspecified
       Background: white
        Underline: nil
         Overline: nil
   Strike-through: nil
              Box: nil
          Inverse: nil
          Stipple: nil
             Font: #<font-object -UKWN-Victor
Mono-light-normal-normal-*-37-*-*-*-m-0-iso10646-1>
          Fontset: -UKWN-Victor
Mono-light-normal-normal-*-37-*-*-*-m-0-fontset-auto3
           Extend: nil
          Inherit: nil

This is on Fedora 36 using lucid toolkit.

Is this due to some change associated with set-face-attribute or some new
bug which needs a bug report?

-- 
regards,

Tim

--
Tim Cross

[-- Attachment #2: Type: text/html, Size: 6380 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Font setting issue in recent emacs dev version
  2022-10-29  3:10 Font setting issue in recent emacs dev version Tim Cross
@ 2022-10-29  6:50 ` Eli Zaretskii
  2022-10-29  7:20   ` Tim Cross
  2022-10-29  8:12   ` Po Lu
  0 siblings, 2 replies; 5+ messages in thread
From: Eli Zaretskii @ 2022-10-29  6:50 UTC (permalink / raw)
  To: Tim Cross; +Cc: emacs-devel

> From: Tim Cross <theophilusx@gmail.com>
> Date: Sat, 29 Oct 2022 14:10:15 +1100
> 
>    Emacs developers  
> Have encountered a font issue in recent dev emacs and wanted to verify it isn't due to a known change before
> creating a bug report. 

Please in the future report any problems as bugs, so that they are
recorded by the issue tracker.

> The basic issue is that setting a default font in my init file doesn't seem to work. However, executing the same
> code in the scratch buffer after boot does set the font. This problem was encountered today after pulling from
> current HEAD. The previous version, from just after eglot was merged, works fine, so it seems to be due to
> something which has changed in the last couple of weeks. 

The only change since 83fbda715973f57dc49fe0 that could be somehow
relevant is the one that touches the support for XSETTINGS on some
configurations.  (If you had reported this as a bug, the bug report
would have included the details of your configuration, and I could
then see if those changes could be relevant, instead of
hypothesizing.)  If that is indeed the offending changeset, then I
guess the issue has something to do with your system-wide font
settings.

In any case, bisection would be appreciated.

> Is this due to some change associated with set-face-attribute or some new bug which needs a bug report?

It doesn't matter; please always report such things as bugs.  Having a
bug number and all its discussion easily traceable makes tracking such
issues much easier.

Thanks.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Font setting issue in recent emacs dev version
  2022-10-29  6:50 ` Eli Zaretskii
@ 2022-10-29  7:20   ` Tim Cross
  2022-10-29  8:12   ` Po Lu
  1 sibling, 0 replies; 5+ messages in thread
From: Tim Cross @ 2022-10-29  7:20 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel


Eli Zaretskii <eliz@gnu.org> writes:

>> From: Tim Cross <theophilusx@gmail.com>
>> Date: Sat, 29 Oct 2022 14:10:15 +1100
>> 
>>    Emacs developers  
>> Have encountered a font issue in recent dev emacs and wanted to verify it isn't due to a known change before
>> creating a bug report. 
>
> Please in the future report any problems as bugs, so that they are
> recorded by the issue tracker.
>

OK, if that is the preference, I will. Was just trying to avoid
cluttering the bug tracker with non-bugs.

>> The basic issue is that setting a default font in my init file doesn't seem to work. However, executing the same
>> code in the scratch buffer after boot does set the font. This problem was encountered today after pulling from
>> current HEAD. The previous version, from just after eglot was merged, works fine, so it seems to be due to
>> something which has changed in the last couple of weeks. 
>
> The only change since 83fbda715973f57dc49fe0 that could be somehow
> relevant is the one that touches the support for XSETTINGS on some
> configurations.  (If you had reported this as a bug, the bug report
> would have included the details of your configuration, and I could
> then see if those changes could be relevant, instead of
> hypothesizing.)  If that is indeed the offending changeset, then I
> guess the issue has something to do with your system-wide font
> settings.
>
> In any case, bisection would be appreciated.
>

OK, will try to bisect further and if it turns out to not be a local
configuration problem or I cannot identify the cause, will log a bug
report. 




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Font setting issue in recent emacs dev version
  2022-10-29  6:50 ` Eli Zaretskii
  2022-10-29  7:20   ` Tim Cross
@ 2022-10-29  8:12   ` Po Lu
  2022-10-29  8:35     ` Tim Cross
  1 sibling, 1 reply; 5+ messages in thread
From: Po Lu @ 2022-10-29  8:12 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Tim Cross, emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

> The only change since 83fbda715973f57dc49fe0 that could be somehow
> relevant is the one that touches the support for XSETTINGS on some
> configurations.  (If you had reported this as a bug, the bug report
> would have included the details of your configuration, and I could
> then see if those changes could be relevant, instead of
> hypothesizing.)  If that is indeed the offending changeset, then I
> guess the issue has something to do with your system-wide font
> settings.
>
> In any case, bisection would be appreciated.

Indeed.  If you haven't changed your display scale settings with Emacs
running, I fail to see how the xsettings changes could be related.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Font setting issue in recent emacs dev version
  2022-10-29  8:12   ` Po Lu
@ 2022-10-29  8:35     ` Tim Cross
  0 siblings, 0 replies; 5+ messages in thread
From: Tim Cross @ 2022-10-29  8:35 UTC (permalink / raw)
  To: Po Lu; +Cc: Eli Zaretskii, emacs-devel


Po Lu <luangruo@yahoo.com> writes:

> Eli Zaretskii <eliz@gnu.org> writes:
>
>> The only change since 83fbda715973f57dc49fe0 that could be somehow
>> relevant is the one that touches the support for XSETTINGS on some
>> configurations.  (If you had reported this as a bug, the bug report
>> would have included the details of your configuration, and I could
>> then see if those changes could be relevant, instead of
>> hypothesizing.)  If that is indeed the offending changeset, then I
>> guess the issue has something to do with your system-wide font
>> settings.
>>
>> In any case, bisection would be appreciated.
>
> Indeed.  If you haven't changed your display scale settings with Emacs
> running, I fail to see how the xsettings changes could be related.

This has turned out a little intriguing.

Based on Eli's suggestion it could be a local X setting issue, I
rebooted and ran 'fc-cache -v' and the issue seems to have gone away.

It would seem that something which has changed between revision
83fbda715973f5 and revision ce527464440ca070e752c has made Emacs more
'sensitive' to local font settings issues. Unfortunately, there is
nothing in the messages buffer or journalctl logs which sheds any light
on what the underlying issue was. 

Prior to the reboot, Emacs from the earlier revision had no problems
loading the font I was requesting (it is a font installed within the
user's local font directory).  However, later revisions failed and fell
back to a Noto font. I was able to reproduce this behaviour reliably
using an init.el file which only had the set-face-attribute setting.

Since the reboot and running of fc-cache, I can no longer reproduce the
issue, so I guess it will remain an unexplained mystery. 



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-10-29  8:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-29  3:10 Font setting issue in recent emacs dev version Tim Cross
2022-10-29  6:50 ` Eli Zaretskii
2022-10-29  7:20   ` Tim Cross
2022-10-29  8:12   ` Po Lu
2022-10-29  8:35     ` Tim Cross

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.