问题
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?).
回答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