Microsoft has strict restrictions on console font metadata, https://support.microsoft.com/zh-cn/help/247815/ Necessary-criteria-for-fonts-to-be-available-in-a-command-window
WINDOW7 terminal fonts must conform to the following criteria to be available in the Command session window
- The font must be a fixed-spacing font.
- The font cannot be an italic font.
- The font cannot have a negative a or C space.
- If this is a TrueType font, it must be ff_modern.
- If it is not a TrueType font, it must be oem_charset.
Additional standards for Asian facilities:
- If it is not a TrueType font, the name on the face must be "terminal".
- If it is an Asian TrueType font, it must also be an Asian character set.
The above font requirements are very demanding, regular fonts are not available, you need a specially designed font to use. However, the design of this font is more complex, need to involve the low-level conversion table, non-professional people do not have a few, so we recommend that you download the following modified Windows 7 command terminal dedicated font: Yaheiconsola
https://pan.baidu.com/s/1gCZP8
Double-click the downloaded MSYH_CONSOLA.TTF file and click Install to complete the font installation.
After installing the fonts, win+r the Run window, enter regedit, and open the Registry Editor
Hkey_local_machine\software\microsoft\windowsnt\currentversion\console\truetypefont
Right-click New "String Value"
- Name is: 0936
- The data is: *yaheiconsola, note that there is an asterisk here.
Right-click PowerShell or the CMD title bar and set the font to Yaheiconsola in properties, font.
- Please refer to the settings for font, color and layout.
- The default value option can be set to the English version.
- If you want the screen buffer size to be full screen, change the width to 180.
Reference documents
1.https://www.zhihu.com/question/36344262
Win7 Command Terminal Basics Color Guide