In the previous article, I published Program The created TrueType font is used in the vs editor. Code The display of characters and Chinese characters is not beautiful. For details, refer to: Here.
In that article, a friend suggested whether Microsoft font (responsible for displaying Chinese characters) can be combined with Courier New Standard Edition (responsible for displaying English code. The reason is that the font I used in my previous article is the new font generated by + Courier New bold (bold version of Courier New. Many people do not like English characters in bold.
The next day, I used the Courier New font and the font to create a new font, but the display of the new font failed. When I install the new font in the font directory and set it with vs, I can view the display information in the code editor, it was found that the color of all English characters (Black was set at the time) became very light. Originally, the courier new font should be black, but the display turned gray, and the code could not be read at all, I thought it was because I set to enable the cleartype effect. After the effect is disabled, it still does not work. This situation is always displayed.
Later, I went to Google to find the result, which is invalid. However, after I checked the help document of font creator 5 in my font editor, I found the reason is that font creator is a TrueType font editor instead of the opentype font editor, although it supports exporting characters from the opentype font, the file generated by it is of the TrueType type.
Note: If you do not know what TrueType and OpenType are, go to Google to search for manyArticleDescription. You only need to know That OpenType is very advanced.
Unfortunately, both the font templates I used, and Courier New, are OpenType fonts. After I copy and overwrite the English characters to the font, the additional data of his OpenType is lost, and only TrueType data is left, which leads to display defects.
I am also very dissatisfied with the previous version of vccode. TTF font. It uses the Courier New bold font that comes with Windows XP, but the display effect is very poor. When I searched in the blog garden, I found someone recommended a courierstd font from Adobe, an enhanced version of courier new font, which was attached to almost all Adobe software. Well, I installed Adobe Acrobat Reader 7.0, which contains the courierstd font.
I used this font for the CourierStd-Bold.otf file, for the same reason, I must use a bold character, otherwise the result is displayed for the same reason as Courier New. Finally, after several modifications, I made a new vscode. TTF file with English characters courierstd-bold and in Chinese. The version number is 1.10. The following figure shows the captured image using the font Browser:
In Visual Studio 2005, the C # code editor displays the following results:
We can see that there are still some defects in english display, for example, the text edge of the character is a little glitch. However, unlike the previous version, you only need to disable cleartype to display English characters perfectly. However, if cleartype is disabled, the Chinese display in the font will not look good, the reason is that the English character is not the opentype font.
I will download the new font. If you have downloaded the old version, delete the old version and add a new version.
[Modified on March 13, September 14: Download is stopped. Please refer to the latest release.]
NOTE 2: You can go to Adobe's official website to check the effect of Adobe's courierstd file. The address is:Here.
NOTE 3: This font has a small bug. In vs code editor, you must set the text size to "12" or above in vs settings, otherwise, the point on the English letter I in the code will be integrated with the vertical bar below, but this problem can be avoided if the text size is set to 12 or more.
Due to the large file size, I have made three compressed packages. Please download them for trial use.
Thank you for your comments!