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

断了今生、忘了曾经 提交于 2020-05-15 19:05:11

问题


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

enter image description here


回答1:


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.



来源:https://stackoverflow.com/questions/25380476/how-to-change-cmd-font-size-without-going-through-properties

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!