[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#907529: emacs-gtk: update to fonts-noto-cjk forces change of font family



Package: emacs-gtk
Version: 1:25.2+1-11
Severity: normal

Hi,

this is a bug report towards emacs, but the origin of the problem is in
the change of fonts-noto-cjk #907048, thus I include the bug email and
debian-fonts ML in the DebbugsCC.

It seems that with the update of fonts-noto-cjk suddenly my font
configuration in emacs is overriden and Noto CJK is used automatically.

I have removed all of my .emacs/, started a new emacs session,
configured and saved the default font to
	Source Code Pro
which gives me a .emacs file as follows (comments removed):
	(package-initialize)
	(custom-set-variables)
	(custom-set-faces
	 '(default ((t (:family "Source Code Pro" :foundry "ADBO" :slant normal :weight normal :height 136 :width normal)))))

After configuration the font changes correctly.

Then I close Emacs (quit).

On next restart the following happens:
- Emacs windows open
- switches to Source Code Pro/14
- and an instant later switches again Noto Sans Mono CJK JP
which I can check by going into
	Customize Face: default

The change in fonts-noto-cjk is that
/etc/fonts/conf.d/70-fonts-noto-cjk.conf is added, and there the
following code is contained:
   <match target="pattern">
        <test name="lang">
            <string>ja</string>
        </test>
        <test name="family">
            <string>monospace</string>
        </test>
        <edit name="family" mode="prepend">
            <string>Noto Sans Mono CJK JP</string>
        </edit>
    </match>

It is surprising that this font is selected. It is true that I live in
Japan, but as you can see below I have all locales set up to en_US:
$ locale
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
$

I don't know who to blame, and even less, I don't know how to override
this, since I don't want Noto as default font.

I can only guess that one of the emacs packages installed does something
here. I have added --debug-init and got the following list of packages
Loading /etc/emacs/site-start.d/00debian.el (source)...done
Loading /etc/emacs/site-start.d/00debian-vars.el (source)...done
Loading /etc/emacs/site-start.d/50asymptote.el (source)...done
Loading /etc/emacs/site-start.d/50autoconf.el (source)...done
Loading /etc/emacs/site-start.d/50cafeobj-mode.el (source)...done
Loading /etc/emacs/site-start.d/50cmake-data.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /etc/emacs/site-start.d/50emacs-mozc.el (source)...done
Loading /etc/emacs/site-start.d/50gtk-doc-tools.el (source)...done
Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...
Loading /usr/share/emacs/site-lisp/latex-cjk-common/cjk-enc.el (source)...done
Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...done
Loading /etc/emacs/site-start.d/50latex-cjk-thai.el (source)...done
Loading /etc/emacs/site-start.d/50maxima-emacs.el (source)...done
Loading /etc/emacs/site-start.d/50mu4e.el (source)...done
Loading /etc/emacs/site-start.d/50namazu2.el (source)...done
Loading /etc/emacs/site-start.d/50python-docutils.el (source)...done
Loading /etc/emacs/site-start.d/50scala-mode-el.el (source)...
Loading /usr/share/emacs/site-lisp/scala-mode/scala-mode-auto.el (source)...done
Loading /etc/emacs/site-start.d/50scala-mode-el.el (source)...done
Loading /etc/emacs/site-start.d/50texlive-lang-english.el (source)...done


My questions are:
- who is loading/overriding this font, and why/how?
- how can I define the default font for emacs that it is not overriden
  by Noto?

Thanks

Norbert

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.5 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages emacs-gtk depends on:
ii  emacs-bin-common       1:25.2+1-11
ii  emacs-common           1:25.2+1-11
ii  libacl1                2.2.52-3+b1
ii  libasound2             1.1.6-1
ii  libatk1.0-0            2.28.1-1
ii  libc6                  2.27-5
ii  libcairo-gobject2      1.15.12-1
ii  libcairo2              1.15.12-1
ii  libdbus-1-3            1.12.10-1
ii  libfontconfig1         2.13.0-5
ii  libfreetype6           2.8.1-2
ii  libgdk-pixbuf2.0-0     2.36.12-2
ii  libgif7                5.1.4-3
ii  libglib2.0-0           2.56.1-2
ii  libgnutls30            3.5.19-1
ii  libgomp1               8.2.0-4
ii  libgpm2                1.20.7-5
ii  libgtk-3-0             3.22.30-2
ii  libice6                2:1.0.9-2
ii  libjpeg62-turbo        1:1.5.2-2+b1
ii  libm17n-0              1.7.0-3+b2
ii  libmagickcore-6.q16-6  8:6.9.10.8+dfsg-1
ii  libmagickwand-6.q16-6  8:6.9.10.8+dfsg-1
ii  libotf0                0.9.13-3+b1
ii  libpango-1.0-0         1.42.4-2
ii  libpangocairo-1.0-0    1.42.4-2
ii  libpng16-16            1.6.34-2
ii  librsvg2-2             2.40.20-3
ii  libselinux1            2.8-1+b1
ii  libsm6                 2:1.2.2-1+b3
ii  libtiff5               4.0.9-6
ii  libtinfo6              6.1+20180714-1
ii  libx11-6               2:1.6.6-1
ii  libx11-xcb1            2:1.6.6-1
ii  libxcb1                1.13-3
ii  libxfixes3             1:5.0.3-1
ii  libxft2                2.3.2-2
ii  libxinerama1           2:1.1.3-1+b3
ii  libxml2                2.9.4+dfsg1-7+b1
ii  libxpm4                1:3.5.12-1
ii  libxrandr2             2:1.5.1-1
ii  libxrender1            1:0.9.10-1
ii  zlib1g                 1:1.2.11.dfsg-1

emacs-gtk recommends no packages.

Versions of packages emacs-gtk suggests:
pn  emacs-common-non-dfsg  <none>

-- no debconf information


Reply to: