From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: uzibalqa Newsgroups: gmane.emacs.help Subject: Re: Frame shifted upwards upon changing font size Date: Tue, 13 Sep 2022 12:40:38 +0000 Message-ID: References: <831qsf5x8j.fsf@gnu.org> <83o7vj4fv8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20702"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 13 14:43:44 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oY5GS-0005Ff-FE for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 13 Sep 2022 14:43:44 +0200 Original-Received: from localhost ([::1]:58152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oY5GR-0007iP-Aq for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 13 Sep 2022 08:43:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY5Dm-0006Wf-Qd for help-gnu-emacs@gnu.org; Tue, 13 Sep 2022 08:40:59 -0400 Original-Received: from mail-40141.protonmail.ch ([185.70.40.141]:34671) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY5Dj-0004jF-Sk; Tue, 13 Sep 2022 08:40:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1663072842; x=1663332042; bh=xaFKS9O3ptjqBdq0qENxHAwZ3GBDyRFjAcIeJ9+7+DI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=YjrjHAKtvfi9nylGGNd2bOzWZkqCQ1kZ+ULh4kmFgh5FwhHFAw0ii4ZMOsNv/40iJ HjA4ZpT3ulavF6LJIM9fhspy3/pb1ygtgO1mKvfmSyUsA8IZ3N7r+7jN0w03ByD9VZ OHap/oJlhUgrg6IAjQpEs636LCArp59awBjU34bc/PU0PYwmvqkTjD7a0yfejOTkt0 msHrp/MHlH72IBB7uPMXGMEzGfWif9YZ11PF/PcAe01gzKPYtkS6uYwHEAZ/rQ8c1Q xrGqsl4bso4D09Rm0tfmAFAa5Fd9uTpR62Dsbw4+T2tUX0MlhdULVx3WX10tDtsqdn 6kpQNprGqOXZA== In-Reply-To: <83o7vj4fv8.fsf@gnu.org> Feedback-ID: 52887082:user:proton Received-SPF: pass client-ip=185.70.40.141; envelope-from=uzibalqa@proton.me; helo=mail-40141.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139441 Archived-At: ------- Original Message ------- On Tuesday, September 13th, 2022 at 12:29 PM, Eli Zaretskii = wrote: > > Date: Tue, 13 Sep 2022 12:10:22 +0000 > > From: uzibalqa uzibalqa@proton.me > > Cc: help-gnu-emacs@gnu.org > >=20 > > > I'd try changing default-frame-alist instead of using > > > set-face-attribute. Maybe it will work better. > > >=20 > > > If that doesn't work, change the order between face customizations an= d > > > setting up the frame coordinates (assuming you do the latter from the > > > init file). > > >=20 > > > In general, what you want is somewhat tricky: Emacs cannot call GUI > > > functions until it has at least one GUI frame, so at best you might > > > see the frame momentarily displayed at the wrong place/with wrong fon= t > > > size before it settles. > >=20 > > default-frame-alist is a confusing as it already has (width . 75) and > > (height . 21) for the frame. What is the corresponding entry for > > the font height? >=20 >=20 > It's 'font' (and use the fully-qualified XLFD name as the value). It is even more difficult for user to identify a font name. =20 set-face-attribute is great because one just specifies its properties without worrying about the actual font (set-face-attribute 'default nil :height 160 :weight 'bold)