all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Vincent Bernat <bernat@luffy.cx>
To: 43128@debbugs.gnu.org
Subject: bug#43128: Acknowledgement (27.1; DPI change not detected after switching to Emacs 27.1)
Date: Wed, 02 Sep 2020 09:28:38 +0200	[thread overview]
Message-ID: <878sdsljrt.fsf@luffy.cx> (raw)
In-Reply-To: <handler.43128.B.15988596567523.ack@debbugs.gnu.org> (GNU bug Tracking System's message of "Mon, 31 Aug 2020 07:41:02 +0000")

Hey!

After investigating a bit, I see that `read_settings()' is correctly
called and the DPI retrieved is correct. However, `apply_xft_settings()'
seems to be a noop for me. I am using the Debian package for
experimental. In the build logs, for the GTK build:

#v+
cd debian/build-gtk && CFLAGS="-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall" CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" LDFLAGS="-Wl,-z,relro" REL_ALLOC=no /<<PKGBUILDDIR>>/debian/build-src/configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/27.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/27.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --with-cairo --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars
[...]
  Does Emacs use -lxft?                                   no
#v-

The lucid build has XFT:

#v+
cd debian/build-lucid && CFLAGS="-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall" CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" LDFLAGS="-Wl,-z,relro" REL_ALLOC=no /<<PKGBUILDDIR>>/debian/build-src/configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/27.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/27.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --with-x=yes --with-x-toolkit=lucid --with-toolkit-scroll-bars --without-gsettings
#v-

Looking at the differences in the build, I see the GTK build tests until
FreeType then it doesn't look further for Xft:

#v+
checking for cairo >= 1.8.0... yes
checking for freetype2... yes
checking for fontconfig >= 2.2.0... yes
#v-

From configure.ac, I see that I go into the Cairo branch which disables
Xft:

#+begin_src sh
  if test $HAVE_CAIRO = yes; then
    dnl Strict linkers fail with
    dnl ftfont.o: undefined reference to symbol 'FT_New_Face'
    dnl if -lfreetype is not specified.
    dnl The following is needed to set FREETYPE_LIBS.
    EMACS_CHECK_MODULES([FREETYPE], [freetype2])

    test "$HAVE_FREETYPE" = "no" && AC_MSG_ERROR(cairo requires libfreetype)

    EMACS_CHECK_MODULES([FONTCONFIG], [fontconfig >= 2.2.0])

    test "$HAVE_FONTCONFIG" = "no" && AC_MSG_ERROR(cairo requires libfontconfig)
    dnl For the "Does Emacs use" message at the end.
    HAVE_XFT=no
#+end_src

So, no XFT seems to mean, no DPI change is possible. Is that expected?
-- 
Make sure input cannot violate the limits of the program.
            - The Elements of Programming Style (Kernighan & Plauger)





  parent reply	other threads:[~2020-09-02  7:28 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-31  7:31 bug#43128: 27.1; DPI change not detected after switching to Emacs 27.1 Vincent Bernat
     [not found] ` <handler.43128.B.15988596567523.ack@debbugs.gnu.org>
2020-09-02  7:28   ` Vincent Bernat [this message]
2020-09-02  7:51     ` bug#43128: Acknowledgement (27.1; DPI change not detected after switching to Emacs 27.1) Vincent Bernat
2020-09-02  7:58     ` YAMAMOTO Mitsuharu
2020-09-02  8:20       ` Vincent Bernat
2020-09-02 14:16         ` Eli Zaretskii
2020-09-02 18:10           ` Vincent Bernat
2020-09-02 14:18       ` Eli Zaretskii
2020-11-23 17:36         ` Eli Zaretskii
2021-07-18 21:38           ` Vincent Bernat
2021-07-19 12:03             ` Eli Zaretskii
2021-07-19 12:09               ` Vincent Bernat
2022-10-25 21:02                 ` Vincent Bernat
2022-10-27 16:33                   ` Eli Zaretskii
2022-10-27 16:55                     ` Vincent Bernat
2022-10-28  0:38                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-28  7:30                       ` Eli Zaretskii
2022-10-29 12:30 ` bug#43128: Changed the font selection after 52d4c98cec0901ef5cc1c55d5b3b33ac9d9c519f OGAWA Hirofumi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878sdsljrt.fsf@luffy.cx \
    --to=bernat@luffy.cx \
    --cc=43128@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.