[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Frame shifted upwards upon changing font size
From: |
uzibalqa |
Subject: |
Re: Frame shifted upwards upon changing font size |
Date: |
Tue, 13 Sep 2022 13:15:19 +0000 |
------- Original Message -------
On Tuesday, September 13th, 2022 at 1:03 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> > Date: Tue, 13 Sep 2022 12:40:38 +0000
> > From: uzibalqa uzibalqa@proton.me
> > Cc: help-gnu-emacs@gnu.org
> >
> > > > 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).
> >
> > It is even more difficult for user to identify a font name.
>
>
> No, it isn't. Evaluate this in a running Emacs session:
>
> (face-font 'default)
>
> > 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)
>
>
> But you said that it doesn't do the job in this case, and asked for
> alternatives, right?
Neither does default-frame-alist
Seems that a solution would be a function that looks at the monitor size
and centers the frame.
- Re: Frame shifted upwards upon changing font size, (continued)
- Re: Frame shifted upwards upon changing font size, Po Lu, 2022/09/14
- Re: Frame shifted upwards upon changing font size, uzibalqa, 2022/09/14
- Re: Frame shifted upwards upon changing font size, Christopher Dimech, 2022/09/14
- Re: Frame shifted upwards upon changing font size, Eli Zaretskii, 2022/09/13
- Re: Frame shifted upwards upon changing font size, uzibalqa, 2022/09/13
- Re: Frame shifted upwards upon changing font size, Eli Zaretskii, 2022/09/13
- Re: Frame shifted upwards upon changing font size,
uzibalqa <=