From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Frame shifted upwards upon changing font size
Date: Tue, 13 Sep 2022 14:29:00 +0300 [thread overview]
Message-ID: <831qsf5x8j.fsf@gnu.org> (raw)
In-Reply-To: <IxCjKeBgIzI6QiEfVxCvtR01-AnBzaJeOFLmUayEKXp26hvRCTU4OBweHcf1fN-ji6y5bX56l5lXGyVHQ5Yyor8DsffydgwcMSTUT_AWW8E=@proton.me> (message from uzibalqa on Tue, 13 Sep 2022 04:27:17 +0000)
> Date: Tue, 13 Sep 2022 04:27:17 +0000
> From: uzibalqa <uzibalqa@proton.me>
>
>
> I have a setup that opens emacs at the centre of the screen.
>
> But then I want to have a specific font size and call
>
> (set-face-attribute 'default nil :height 160 :weight 'bold)
>
> This puts the menu-bar outside the screen. What can I do to keep the window at the
> center of the screen?
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.
next prev parent reply other threads:[~2022-09-13 11:29 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-13 4:27 Frame shifted upwards upon changing font size uzibalqa
2022-09-13 11:29 ` Eli Zaretskii [this message]
2022-09-13 12:10 ` uzibalqa
2022-09-13 12:25 ` uzibalqa
2022-09-13 13:22 ` Gregory Heytings
2022-09-13 13:45 ` uzibalqa
2022-09-13 13:53 ` Gregory Heytings
2022-09-13 13:57 ` uzibalqa
2022-09-13 15:28 ` Gregory Heytings
2022-09-13 21:07 ` uzibalqa
2022-09-14 10:10 ` Robert Pluim
2022-09-14 15:09 ` uzibalqa
2022-09-15 7:17 ` Robert Pluim
2022-09-15 11:43 ` uzibalqa
2022-09-15 12:25 ` Robert Pluim
2022-09-15 13:38 ` Po Lu
2022-09-15 15:09 ` Pascal Quesseveur
2022-09-15 16:07 ` Yuri Khan
2022-09-15 16:27 ` Pascal Quesseveur
2022-09-14 10:30 ` Po Lu
2022-09-14 15:07 ` uzibalqa
2022-09-14 15:21 ` Christopher Dimech
2022-09-13 12:29 ` Eli Zaretskii
2022-09-13 12:40 ` uzibalqa
2022-09-13 13:03 ` Eli Zaretskii
2022-09-13 13:15 ` uzibalqa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=831qsf5x8j.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.