简体   繁体   English

如何在不经过属性的情况下更改cmd字体大小?

[英]How to change cmd font size, without going through properties?

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?). 我知道您可以更改buffersize和windowsize,但似乎找不到更改fontsize /(resolution?)的命令。

在此处输入图片说明

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. 答案是,据我所知和所知,目前尚没有从命令行本身更改CMD字体大小的本地方法。 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调用Powershell来工作,适用于任何不介意实现该解决方案所涉及的工作的人。

The lack of a native feature for this is, in my opinion, a massive failing of CMD. 在我看来,缺少本机功能是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. 能够使用诸如color 0f类的命令来更改控制台窗口的背景色和前景色,而无需提供类似的功能来更改其他字体属性,这确实与UX不一致。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM