Cmd 字符字体大小 [英] Cmd character font size

查看:24
本文介绍了Cmd 字符字体大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何在cmd中修改字符大小.我已经在互联网上搜索过,但我发现的都是Proprieties的方法.我需要类似模式 x,y 的东西,但需要字符.

Did anybody know how to modify the character size in cmd. I already searched on internet but all what I found was the method from Proprieties. 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 "HKCUConsole\%consoleName%" /f 
        reg add "HKCUConsole\%consoleName%" /f /v "FaceName"         /t "REG_SZ"     /d "Consolas"
        reg add "HKCUConsole\%consoleName%" /f /v "FontFamily"       /t "REG_DWORD"  /d 0x00000036
        reg add "HKCUConsole\%consoleName%" /f /v "FontSize"         /t "REG_DWORD"  /d 0x00080004
        reg add "HKCUConsole\%consoleName%" /f /v "FontWeight"       /t "REG_DWORD"  /d 0x00000000
        reg add "HKCUConsole\%consoleName%" /f /v "QuickEdit"        /t "REG_DWORD"  /d 0x00000000
        reg add "HKCUConsole\%consoleName%" /f /v "ScreenBufferSize" /t "REG_DWORD"  /d 0x00200040
        reg add "HKCUConsole\%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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆