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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#48307: [External] : bug#48307: Feature request: provide default keyb


From: Drew Adams
Subject: bug#48307: [External] : bug#48307: Feature request: provide default keybindings to change the font size in all windows
Date: Mon, 10 May 2021 14:17:38 +0000

> There is one subtle difference you should be aware of:
> 
> (1) If you change the size of the default font of a live frame, that
>      frame's size may change unless you rule out implied resizing for
>      it.
> 
> (2) If you change the font in all windows showing a buffer by adjusting
>      that buffer's text scaling, frame sizes will stay the same.
> 
> So you have to be precise about the "something that scales" you want.

Indeed.  Zooming (text scaling or frame zooming) and
fitting windows or frames to buffer text are different
things.  There should be ways to get different
combinations (e.g. autofit window/frame or not).

To enable windows to show the same text (e.g. without
wrapping or introducing extra blank space at the
right), I introduced option `text-scale-resize-window'.

It lets you automatically resize the selected window
(horizontally, vertically, or both) when text is
resized, so that the way the window fits the buffer
text remains relatively constant.

Shrinking the text in one window shrinks that window,
giving more space to adjacent windows.

If you also use library `fit-frame.el', then 1-window
frames also respond to text resizing by scaling.  If
not, then the text-scale commands have no effect on
frame size for one-window frames.

(I tried to get Emacs to add such an option, but had
no luck with that.)

https://www.emacswiki.org/emacs/download/face-remap%2b.el

reply via email to

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