My guess:
10pt = 13.333px and it's problem with correct render for some fonts.
Set 9pt. It's 12px by default and all is ok.
How to get Visual Studio 2012 to render monospaced fonts correctly?
-
24-06-2022 - |
문제
In my Visual Studio 2012, monospaced fonts does not render correctly, specifically they don't render "monospaced" correctly, ie. the characters are not uniform in width.
Here's an example, this:
// 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
// -|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|--|
renders as this with Consolas 10-point, 100% zoom:
and as this with 101% zoom:
There are other minor problems at 101% zoom, so neither are good. Is there a way for me to configure Visual Studio to render monospaced fonts correctly?
I have tried the following fonts:
Consolas
Courier
Courier New
Terminal
Apparently no monospaced font that I've tried renders correctly in Visual Studio.
If I use the exact same font and font-size in Notepad2, like Consolas:
compare notepad2 and Visual Studio with Consolas
Is there anything I can do?
Details:
- Windows 7
- Cleartype enabled
- Font-size in Windows is set to 100%
Visual Studio 2012 font dialog:
해결책