如何在不经过属性的情况下更改cmd字体大小? [英] How to change cmd font size, without going through properties?

查看:131
本文介绍了如何在不经过属性的情况下更改cmd字体大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有一种方法可以通过使用命令来更改字体的大小。
我知道您可以更改buffersize和windowsize,但是我似乎找不到更改字体大小/(分辨率?)的命令。

I was wondering if there is a way to change the size of the font by using a command. I know you can change buffersize and windowsize but I can't seem to find a command to change the fontsize/(resolution?).

推荐答案

我是来这里寻找相同问题的答案的,将它最后以一个答案供其他人参考似乎是一个好主意。 答案是,据我所知和所知,目前尚没有从命令行本身更改CMD字体大小的本地方法。 https://stackoverflow.com/a/27127760/1191147>此处概述的hacky解决方案可通过从CMD调用Powershell来实现,适用于任何不介意实现该解决方案的工作的人。

I came here looking for the the answer to the same question, and it seems like a good idea to finally close it with an answer for the reference of anyone else. The answer is that, to the best of my research and knowledge, there is currently no native way to change the font size of CMD from the command line itself. There is a very involved, hacky solution outlined here that works by invoking Powershell from CMD, for anyone that doesn't mind the work involved in implementing that soluition.

在我看来,缺少此功能是CMD的重大失败。能够使用 color 0f 之类的命令来更改控制台窗口的背景色和前景色,而没有提供类似的功能来更改其他字体属性,这确实与UX不一致。

The lack of a native feature for this is, in my opinion, a massive failing of CMD. Being able to use commands like color 0f to change the background and foreground colours of a console window without providing similar functionality to change other font properties is really inconsistent UX.

这篇关于如何在不经过属性的情况下更改cmd字体大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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