From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Frame shifted upwards upon changing font size Date: Tue, 13 Sep 2022 15:29:31 +0300 Message-ID: <83o7vj4fv8.fsf@gnu.org> References: <831qsf5x8j.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9771"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 13 14:34:01 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 1oY572-0002JB-NZ for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 13 Sep 2022 14:34:00 +0200 Original-Received: from localhost ([::1]:53486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oY571-0007JL-A6 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 13 Sep 2022 08:33:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY53A-0007Io-ET for help-gnu-emacs@gnu.org; Tue, 13 Sep 2022 08:30:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59686) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY52z-0002ng-DL for help-gnu-emacs@gnu.org; Tue, 13 Sep 2022 08:29:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=3gQdI2CS4vn7lTHoAZ9qw11bD6jUk/W6o2HbTk5stp4=; b=gMohxanscSDt iQHKgG6eWYqJsk6Cf/BZ/R/rEGSoC0Eufb5Whnsio2DEPzA6/OGd5gA1BSfScdcnfn8is3C2M+hjW c+TQntsp8ZnTiI1QR5ROlZ4KNxrxJ3tfwLbv4JqIbQOWgfWY9HqJarnsGDM65/23snzZSvrWCGhFa KUaYPaI+5YHzfhpNRRgHG8R8arhnc/NLPBOuD+/+q4bCm7Eq7kgfE0slXPD42qxE6BBu9MXAdtfis y9/HfDGw4kPQGKc9t8kgLTUTWjprZqiX5yiY/zDS0xcmV3paq3o6bUEwsV5jecTFO2aJSzuw/yoFq WKZ88Ofu3C5JkQeSprIBpA==; Original-Received: from [87.69.77.57] (port=3808 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY52t-0004gn-0q for help-gnu-emacs@gnu.org; Tue, 13 Sep 2022 08:29:45 -0400 In-Reply-To: (message from uzibalqa on Tue, 13 Sep 2022 12:10:22 +0000) 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:139439 Archived-At: > Date: Tue, 13 Sep 2022 12:10:22 +0000 > From: uzibalqa > Cc: help-gnu-emacs@gnu.org > > > I'd try changing default-frame-alist instead of using > > set-face-attribute. Maybe it will work better. > > > > If that doesn't work, change the order between face customizations and > > setting up the frame coordinates (assuming you do the latter from the > > init file). > > > > 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 font > > size before it settles. > > 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? It's 'font' (and use the fully-qualified XLFD name as the value).