简体   繁体   中英

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?).

在此处输入图片说明

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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