In fact, powershell can be regarded as an enhanced version of cmd, which is described by taking powershell as an example.
Optional content added to the shortcut
First, create a powershell shortcut on the desktop, right-click the "property", and you can find that there are many tabs. Where:
1> option: the code page is configured. Generally, 437 (oem-USA) and 936 (ansi/oem Simplified Chinese GBK) are commonly used)
2> Font: select the font type and size.
3> color: You can select the foreground background color.
4> layout: You can select the window position and size.
Add optional font
Programming when we often use the same width font, there are a lot of recommendations online, I personally prefer "Anonymous Pro", http://www.ms-studio.com/FontSales/anonymous.html
Download the package and install it on the system.
If you modify the powershell font, you will find very few options. Although there are many fonts in our system, let's talk about how to add available fonts.
Start with "Run regedit.exe"
Find HKLM \ Software \ Microsoft \ WindowsNT \ CurrentVersion \ Fonts, which contains the installed font
Find HKLM \ Software \ Microsoft \ WindowsNT \ CurrentVersion \ Console \ TrueTypeFont
Create a pure 0 string in it. do not conflict with the original one. If there is already "0" and "00" in it, create "000 ", set the font you want, for example, "Anonymous Pro ".
Select font
In this way, right-click the powershell shortcut again, select the code page 437, and then view the font to see "Anonymous Pro.
You can also add other fonts you like, but note that they are only in code page 437 and cannot be seen in code page 936.
The following are some requirements for fonts:
The fonts must meet the following criteria to be available in a command session window:The font must be a fixed-pitch font.The font cannot be an italic font.The font cannot have a negative A or C space.If it is a TrueType font, it must be FF_MODERN.If it is not a TrueType font, it must be OEM_CHARSET.Additional criteria for Asian installations:If it is not a TrueType font, the face name must be "Terminal."If it is an Asian TrueType font, it must also be an Asian character set.
My attempt
By default, the system provides the new for the code page 936. This font is normal. I want to change it, but I don't know how to modify the registry, because adding "0000" seems useless to code page 936.
So my idea is to replace "936-" * in the Registry with my own font.
Download a Font Creator from the Internet to open the ttf file and display each character.
1> copy the fonts of and Anonymous to the desktop
2> open the two fonts respectively.
3> Replace the characters in with commonly used characters in Anonymous (0-9A-Za-z, and some punctuation marks. Note the space and null characters.
4> rename the changed (this name is saved in the font file, and the file name is not a concept). The format is named, and the platform is UNICODE, note that you need to set English and Chinese respectively for the language (my operating system is in the Chinese version. Previously, only the English name was changed, and the font name was not actually changed). Modify the font family name, for example, I changed it to "ProgramYaHei" (English) and "\ 7F16 \ 7A0B \ 96C5 \ 9ED1" (Chinese). (The following is the UTF16 code of ").
5. Select "single space" for the proportion of "format", set "category". If this option is not selected, the font cannot be used by powershell.
5> save it as msyh_anonymous.ttf, right-click the ttf file, and install it.
You can find that you can select "" in the word, but I don't know why, the English font is a little different from Anonymous, and it seems distorted.
Modify the registry, replace "* "with "* ", and configure the shortcut, OK.
References
Http://support.microsoft.com/default.aspx? Scid = KB; EN-US; Q247815
Http://www.cnblogs.com/submaie/archive/2006/12/22/600193.html
Http://www.cnblogs.com/submaie/archive/2006/12/22/600193.html
Http://www.cnblogs.com/submaie/archive/2006/12/24/602192.html
Http://www.cnblogs.com/RobertLee/archive/2006/12/24/602246.html
Http://www.cnblogs.com/RobertLee/archive/2006/12/25/602646.html
Http://zhidao.baidu.com/question/77162600.html