From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.devel Subject: Re: Recent changes incorrectly calculate font size within daemon mode Date: Thu, 30 Aug 2018 19:43:00 +0200 Message-ID: <87y3cniwd7.fsf@wavexx.thregr.org> References: <87wos94ga3.fsf@wavexx.thregr.org> <87k1o9zb3h.fsf@wavexx.thregr.org> <5dc78361-5a91-f187-2781-6b142fbdec2b@cs.ucla.edu> <87zhx3j3xj.fsf@wavexx.thregr.org> <67a0314a-2b6f-3e85-a4f0-f98bd2254495@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1535650849 7410 195.159.176.226 (30 Aug 2018 17:40:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 30 Aug 2018 17:40:49 +0000 (UTC) User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: Emacs Development To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 30 19:40:45 2018 Return-path: Envelope-to: ged-emacs-devel@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 1fvQw0-0001pU-V1 for ged-emacs-devel@m.gmane.org; Thu, 30 Aug 2018 19:40:45 +0200 Original-Received: from localhost ([::1]:50165 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fvQy7-00013T-Bx for ged-emacs-devel@m.gmane.org; Thu, 30 Aug 2018 13:42:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fvQxy-00012U-3j for Emacs-devel@gnu.org; Thu, 30 Aug 2018 13:42:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fvQxx-0003uV-DW for Emacs-devel@gnu.org; Thu, 30 Aug 2018 13:42:46 -0400 Original-Received: from erc.thregr.org ([2001:41c9:1:41f::63]:60442) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fvQxx-0003u4-6q for Emacs-devel@gnu.org; Thu, 30 Aug 2018 13:42:45 -0400 Original-Received: from [2a02:27e8:20:9049:4a2a:e3ff:fe02:7265] (helo=localhost) by erc.thregr.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1fvQxt-0004Cj-6Y (envelope-from ); Thu, 30 Aug 2018 19:42:41 +0200 In-reply-to: <67a0314a-2b6f-3e85-a4f0-f98bd2254495@cs.ucla.edu> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:41c9:1:41f::63 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:229113 Archived-At: On Thu, Aug 30 2018, Paul Eggert wrote: > What is your native screen resolution and how are you setting your font > scaling factor? I used gnome-tweaks to set my font scaling factor to > 1.30. My xrdb output says: I have no clue what gnome-tweaks does in detail, so cannot say anything specific about it, but I went on debugging further on the init side. I noticed I also call 'set-face-attribute during init.el: (set-face-attribute 'default :nil "DejaVu Sans" :height 150) By doing an eval after creating the first frame, the font size is correctly calculated. So it seems that something isn't set early enough compared to before.