缩放Emacs框架的字体大小,而不更改框架的尺寸 [英] Scale the font size for an Emacs frame without changing the frame's dimensions

查看:167
本文介绍了缩放Emacs框架的字体大小,而不更改框架的尺寸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题所示,可以在emacs 框架中增加字体大小>,而不仅仅是一个缓冲区

As this question illustrates, it is possible to increase the font size in an emacs frame, not just a buffer.

不幸的是,这里的解决方案也增加了框架的大小。

Unfortunately, the solutions there also increase the size of the frame itself.

考虑以下用例。少数人坐在一边。有一段时间,两个或更多的人在一个工作台前面聚会,讨论一些事情。这样可以增加字体大小,同时保持框架的大小不变,这样以后可以轻松地恢复个人工作。你会怎么做?

Consider the following use case. A few people are sitting side-by-side. Once in a while, two or more get together in front of one workstation to discuss something. It is then nice to increase the font size while keeping the size of the frame still, which makes it easy to resume individual work afterwards. How would you do this?

推荐答案

缩放框架字体会自动更改框架大小。这是一个功能(例如,允许您在缩小尺寸时节省屏幕空间,但可以理解的是有时候要保持大小相同。

Zooming the frame font does automatically change the frame size. This is a feature (allowing you to save screen space when you reduce the size, for example. But it is understandable that sometimes one would like to keep the size the same.

您可以(1)在缩放之前获取当前帧大小(从 frame-parameters ),然后(2)将框架重新调整为大小,放大后,在一个函数中作为一个命令或钩子使用。

You can (1) get the current frame size (from frame-parameters) before zooming and then (2) resize the frame back to that size, after zooming. Do that in a function that you use as a command or perhaps in a hook.

您还可以逐渐更改框架大小(请参阅相同页面,或参阅 frame-cmds.el )或 平铺框架 以适合屏幕等。

You can also just change the frame size incrementally (see the same page or see frame-cmds.el), or tile frames to fit the screen etc.

这篇关于缩放Emacs框架的字体大小,而不更改框架的尺寸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆