From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Dr. Werner Fink" Newsgroups: gmane.emacs.bugs Subject: bug#25228: [emacs-bug] bug#25228: 25.1; GNU emacs 25.1: custom-set-faces from init file ~/.emacs ignored Date: Wed, 21 Dec 2016 09:47:46 +0100 Message-ID: <20161221084746.j6taegtb76rufwek@boole.suse.de> References: <83oa074y73.fsf@gnu.org> <5858289B.2070500@gmx.at> <83fulj4uhu.fsf@gnu.org> <58584121.1070404@gmx.at> <83d1gn4pl2.fsf@gnu.org> <58590F28.9040309@gmx.at> <20161221081104.3nd6sga4cyi6q7wl@boole.suse.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dfjxvjigxkey4bcl" X-Trace: blaine.gmane.org 1482310093 2424 195.159.176.226 (21 Dec 2016 08:48:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Dec 2016 08:48:13 +0000 (UTC) User-Agent: Mutt/1.6.2 (2016-07-01) Cc: 25228@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 21 09:48:08 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJcZD-00084t-CI for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Dec 2016 09:48:07 +0100 Original-Received: from localhost ([::1]:55838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJcZH-0004Td-JK for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Dec 2016 03:48:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJcZB-0004T7-4I for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2016 03:48:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJcZ8-0002cT-1N for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2016 03:48:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34253) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cJcZ7-0002cP-VI for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2016 03:48:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cJcZ7-0001w5-Jh for bug-gnu-emacs@gnu.org; Wed, 21 Dec 2016 03:48:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Dr. Werner Fink" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Dec 2016 08:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25228 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25228-submit@debbugs.gnu.org id=B25228.14823100717418 (code B ref 25228); Wed, 21 Dec 2016 08:48:01 +0000 Original-Received: (at 25228) by debbugs.gnu.org; 21 Dec 2016 08:47:51 +0000 Original-Received: from localhost ([127.0.0.1]:49652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJcYw-0001va-VM for submit@debbugs.gnu.org; Wed, 21 Dec 2016 03:47:51 -0500 Original-Received: from mx2.suse.de ([195.135.220.15]:48348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJcYv-0001vR-NN for 25228@debbugs.gnu.org; Wed, 21 Dec 2016 03:47:50 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Original-Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E9911AAE8; Wed, 21 Dec 2016 08:47:48 +0000 (UTC) Content-Disposition: inline In-Reply-To: <20161221081104.3nd6sga4cyi6q7wl@boole.suse.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:127283 Archived-At: --dfjxvjigxkey4bcl Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 21, 2016 at 09:11:04AM +0100, Werner Fink wrote: > On Tue, Dec 20, 2016 at 11:59:52AM +0100, martin rudalics wrote: >=20 > Hmmm ... after verifying this I've tried this patch > -------------------------------------------------------------------------= --- > --- src/xsettings.c > +++ src/xsettings.c 2016-12-21 07:25:17.605036477 +0000 > @@ -45,6 +45,7 @@ along with GNU Emacs. If not, see #endif > =20 > #ifdef HAVE_XFT > +#include > #include > #endif > =20 > @@ -620,7 +621,11 @@ apply_xft_settings (struct x_display_inf > #endif > FcPatternGetInteger (pat, FC_LCD_FILTER, 0, &oldsettings.lcdfilter); > FcPatternGetInteger (pat, FC_RGBA, 0, &oldsettings.rgba); > - FcPatternGetDouble (pat, FC_DPI, 0, &oldsettings.dpi); > + > + if (FcPatternGetDouble (pat, FC_DPI, 0, &oldsettings.dpi) =3D=3D FcRes= ultMatch) > + { > + oldsettings.dpi =3D round(oldsettings.dpi); > + } > =20 > if ((settings->seen & SEEN_AA) !=3D 0 && oldsettings.aa !=3D settings-= >aa) > { > -------------------------------------------------------------------------= --- >=20 > and indeed there is a change in the behaviour. Without the custom font s= etting > now GNU Emacs window does not a resize anymore at open. It simply starts= with > the system font without changing its size at open its window. >=20 > Nevertheless, with the custom font setting and without my change in lisp/= dynamic-setting.el > the resize event of the GNU Emacs window is back and still the system fon= t is > used regardless what font has been customized in ~/.emacs >=20 > > [backtraces] > >=20 > > It's easy to spot `dynamic-setting-handle-config-changed-event' as the > > source of this. >=20 > Ack There seems to be also an other place where rounding does not fit. With sys= tem font set, that is no custom font at all the height of the same font are dif= ferent, that is=20 (font-face-attributes (font-get-system-font)) results in (:family "Monospace" :height 110) whereas=20 (font-face-attributes (face-attribute 'default :font)) shows (:family "Source Code Pro" :height 113 :weight normal :slant normal :widt= h normal) which is the same font (even over different channels) but different height.= I've verified this by using (custom-set-faces '(default ((t (:family "Source Code Pro" :height 110 :w= eight normal :slant normal :width normal))))) (custom-set-faces '(default ((t (:family "Monospace" :height 110))))) Would interesting how to compare the uperficial ifferent font face attribut= es for the same font in (font-setting-change-default-font). --=20 "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr --dfjxvjigxkey4bcl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABAgAGBQJYWkGyAAoJEFDpDVUdwWsuTqEP/11S/TluWKCCgU7PgoEgp+wH 9LooC6EQ4cIEM/KqKvV3W0Plj/9doncNFK0YsjRJnlUKBn1XEFAUorbxCVMRHVXo Y6jCftKSGjW+MCWm+2hPsUWq21fHGX2Vdvrprq6QkAJKlRaEgN13k+rhil9JnKuq bdWT2GTdgADD0WX4vWMCtBx8y+o5fhfSxF7fF9Vb2PMnyX//TfDI8MOeMRDoQd9O i2ZMuqVuBV9TnFQzhD8EmFPt/dwzKWO521ZQGSK+7hSm8sxTBVX3OF8lLS+xc4I6 E42FdIQLvHdKiTLBGXWniwHibVcbb1qfERdnQruF6s4W3Xoeu8mZzkI113KwZjaq xZ+d8WNDxUAwy0Xfh8KvUuWYnDOfXaeYZAOqS7ouEOSvowazYvr3pqSF7iKky+Hw mSChtK9Tjfs/4QAOeFd1dy57hbuoKDsqDYjQ/ALb60P2jCKNeqDZZPpWMHlWbG8G 0DrYa+IjXuI65JQWg4QOdvX7ZIvadLtkH8kwG9Hp52XIudNLh0BRYDNG5aR02o9Y g/VNpa9wLeTnenSw3DCTzxZWbI4CMnHsNtPQ3YhhFACKqqpioZ6mlu/d1df2xFt0 LY2DEk+Tgzo2gHHp9mvLYf5Jqf0ECtd+yMeE/KsCxurk0NGLVnOuwGU4WxFgnEGM ru+FBYt+X9EjzoiGDokI =EC6L -----END PGP SIGNATURE----- --dfjxvjigxkey4bcl--