mactype
mactype copied to clipboard
Text in Visual Studio was partially rendered
The following screenshot was taken from the code window of VS 2022.

Some italic characters (marked yellow) were not anti-aliased, but some were properly rendered (marked green). I closed that code window and opened the code file again, it became normal.

I had not encountered such kind of issue before the recent pre-released RC2. The RC1 was working well.
Would you mind uploading your profile?
Thank you for looking into this issue.
Here's my MacType profile. SoftGrayNoHinting.zip
I am using my VS extension to enable italic style in VS, which provides the effect for the sample code file in the above post.
This issue appeared to be quite random. I could not reproduce it with absolute certainty. Hope the above file helps.
Okay... so how can I make my code editor italic with your extension?
- Open a code file (any type of code file, C++, C, HTML, etc.)
- Place the caret onto the code element that you want to change its style (in the following screenshot, the comment in the code)
- Execute the Customize Codist Syntax Highlight command in the Tools menu.
- A dialog will appear, on the right part of the list, classified syntax styles corresponding to the code where the caret is located are listed (comment and formal language in the screenshot).
- Click the one that you want to change.
- Check the Italic check box and you can see the corresponding changes in the code file window.
- Click the Save button to keep the changes.
Here's the example:
Your extension worked like magic. It's so easy to use and super handy.
I didn't encounter any problem with italic fonts. I suspect that it has something to do with you disabling ClearType.
BTW,
The "Not-working" screenshot in the first post of this issue, I not only assigned the italic style but also decreased the font size of the C# attribute annotation. This issue occurred several times and each time it took place at the shrunken C# attribute.

I suspect that it has something to do with you disabling ClearType.
Hmm, I had recently disabled the ClearType by hacking the registry. I might be the reason why I did not encounter it previously.
As you can see on the above screenshot in this post, the display was beautifully rendered by MacType again while I was taking the screenshot--this issue does not occur every time.
I've restarted my vs2022 several times with font size shrunk down. It worked beautifully every single time.
Please don't deliberately reproduce this issue that occurs occasionally.
Perhaps it is OK to change the code comment styles to font size = -1 and italic, then keep working with VS as usual. If someday it occurs on your VS, then look into it. If it doesn't, let it be, since it is not so severe.
Hi, you can try "Text Sharp" vs extension.
As @digiant mentioned, there are extensions that can change the text rendering effects in VS. My extension also has such kind of settings, that can be changed from Tools/Options in VS. However, I don't think it can cause this issue. With MacType, those settings are actually neither necessary nor in effect any more. I had TextSharp uninstalled for years after MacType was taking effect on VS.

I agree with snowie that this issue might be caused for ClearType had been turned off on my computer.
One more screenshot, taken from the Add New Project dialog:
Recently there is a commit that may force gray-scale rendering in DirectWrite, which may fix #873. Hereby I can turn on ClearType afterwards and see whether this issue reoccurs and make the assumption that "this issue might be caused for ClearType had been turned off on my computer".
Possible to build a new test version for the recent commit?
Unfortunately that patch doesn't work in edge and chrome. That's why I did not rush to release a new version.