Cmd字符字体大小 [英] Cmd character font size
问题描述
有人知道如何修改字符大小在cmd.I allready搜索互联网,但我所发现的是Proprietes的方法。我需要类似模式x,y但是对于字符。
Did anybody know how to modify the character size in cmd.I allready search on internet but all what I i found was the method from Proprietes. I need something like mode x,y but for characters.
推荐答案
你不能改变(或至少我不知道
You can not change (or at least i don't know how to do it) the properties of the current console from command line without some third party tool.
但是,您可以自定义创建一个新的控制台
BUT, you can customize the creation of a new console
@echo off
setlocal enableextensions disabledelayedexpansion
set "consoleName=testing"
:: http://technet.microsoft.com/en-us/library/cc978570.aspx
( reg add "HKCU\Console\%consoleName%" /f
reg add "HKCU\Console\%consoleName%" /f /v "FaceName" /t "REG_SZ" /d "Consolas"
reg add "HKCU\Console\%consoleName%" /f /v "FontFamily" /t "REG_DWORD" /d 0x00000036
reg add "HKCU\Console\%consoleName%" /f /v "FontSize" /t "REG_DWORD" /d 0x00080004
reg add "HKCU\Console\%consoleName%" /f /v "FontWeight" /t "REG_DWORD" /d 0x00000000
reg add "HKCU\Console\%consoleName%" /f /v "QuickEdit" /t "REG_DWORD" /d 0x00000000
reg add "HKCU\Console\%consoleName%" /f /v "ScreenBufferSize" /t "REG_DWORD" /d 0x00200040
reg add "HKCU\Console\%consoleName%" /f /v "WindowSize" /t "REG_DWORD" /d 0x00200040
) > nul
start "%consoleName%" cmd.exe
控制台的多个自定义的配置。此代码只是创建与窗口标题相关联的基本定制,并使用此标题启动新控制台以使用指定的参数。
The registry stores the configuration for multiple customizations of the console. This code just creates a basic customization associated to a window title and starts a new console with this title to use the indicated parameters.
有关详细信息,文档包含对值的完整引用。
For more information, the documentation includes a complete reference of the values.
这篇关于Cmd字符字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!