From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Weird problem with inital frame sizing Date: Thu, 13 Sep 2018 16:20:10 -0400 Message-ID: References: <20180912103723.0999377c@jabberwock.cb.piermont.com> <20180913150851.3a330def@jabberwock.cb.piermont.com> <20180913151516.78aa0de4@jabberwock.cb.piermont.com> <20180913152355.7618b1a2@jabberwock.cb.piermont.com> <20180913153151.0a14f736@jabberwock.cb.piermont.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1536869941 17375 195.159.176.226 (13 Sep 2018 20:19:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2018 20:19:01 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: "Perry E. Metzger" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 13 22:18:57 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 1g0Y4m-0004P3-ND for ged-emacs-devel@m.gmane.org; Thu, 13 Sep 2018 22:18:56 +0200 Original-Received: from localhost ([::1]:44177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0Y6t-0006mF-Bb for ged-emacs-devel@m.gmane.org; Thu, 13 Sep 2018 16:21:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0Y6F-0006m4-7F for emacs-devel@gnu.org; Thu, 13 Sep 2018 16:20:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0Y63-0006to-Qw for emacs-devel@gnu.org; Thu, 13 Sep 2018 16:20:21 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:44351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0Y62-0006pK-Ds for emacs-devel@gnu.org; Thu, 13 Sep 2018 16:20:14 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w8DKKAjH003190; Thu, 13 Sep 2018 16:20:10 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 257B76A663; Thu, 13 Sep 2018 16:20:10 -0400 (EDT) In-Reply-To: <20180913153151.0a14f736@jabberwock.cb.piermont.com> (Perry E. Metzger's message of "Thu, 13 Sep 2018 15:31:51 -0400") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6373=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6373> : inlines <6878> : streams <1798360> : uri <2709820> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:229758 Archived-At: >> (set-face-attribute 'default nil >> :family "DejaVu Sans Mono" :height 140) I'd recommend you move away from set-face-attribute. > I need to condition my init on whether I'm running under X, on a > terminal, or under cocoa ("ns"), so I need to know the value of > window-system when setting things in my init file. (I use a single > init file on many different machines for sanity's sake.) Faces can be set on a per-frame basis, and Custom knows how to describe face settings that depend on the terminal. You can try something like (face-spec-set 'default '((((type x)) :family "DejaVu Sans Mono" :height 140) (((type ns)) :family "Monaco" :height 100) (t :family :height 120))) -- Stefan