help-gnu-emacs
[Top][All Lists]
Advanced

[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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]