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 12:40:38 +0000

------- Original Message -------
On Tuesday, September 13th, 2022 at 12:29 PM, Eli Zaretskii <eliz@gnu.org> 
wrote:


> > Date: Tue, 13 Sep 2022 12:10:22 +0000
> > From: uzibalqa uzibalqa@proton.me
> > 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).

It is even more difficult for user to identify a font name.  

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)



reply via email to

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