views:

674

answers:

10

I was wondering: are you satisfied with the text-rendering in the Visual Studio 2010 editor (Beta 2)? On my primary monitor it looks very blurred, even when using font size 12!

When using font size 10 or 11 it's horrible. Can the WPF text rendering mode be set explicitly for VS code window?

EDIT: I am using Windows 7 x64 and my primary monitor is a Benq G2412HD. What's kind of strange is that the font seems to be nicer on the secondary monitor, which is a 4 year old 19' TFT.

EDIT: I tried several Cleartype settings but none really looks as nice as when using Visual Studio 2008. The first image is from the primary monitor, the second from the secondary. Both are using Consolas 10pt (my preferred font).

Primary screen Secondary screen

A: 

Have you ensured that ClearType is enabled on your OS? I've seen similar issues with 2010 when ClearType was disabled on my machine. Re-enabling ClearType made the Text snappy looking again.

For some reason the ClearType setting on my OS kept getting undone when I TS'd around a bit. I had to reset it a couple of times but it seems to have calmed down recently (I believe I was using a Pre-RTM build of Win7 at the time).

JaredPar
In beta 2, when ClearType is disabled, fonts inside VS should be not-antialiased at all, just like OS fonts aren't. That could make them look pixellated, but definitely not blurry.
Pavel Minaev
+2  A: 

I use Consolas size 10 and I have no issues.

  • Try following the instructions on Microsoft's website for tuning clear type. You can find it here.
  • If you use IE when accessing that website, you can make changes to clear type settings right from the browser.
Jeremy Roberts
A: 

Try using Courier New font. Tools -> Options -> Environment -> Fonts and Colors

grega g
Just tried, doesn't look better either..
ollifant
+1  A: 
Pavel Minaev
forget toe colorscheme posted. what about Lucida Console 9pt. how on earth could anybody possibly use a font that big!
Simon_Weaver
See the edit to the post - it repros on font of any size with bright letters on dark background. With default settings, font of any size is fine (10pt is not any different). The font is that big because my vision isn't perfect, and on 24" it's still small enough to accomodate long lines.
Pavel Minaev
@Simon: Depends on your monitor's DPI. I am using a 15" laptop running at 1600x1200 and anything less than 13 point Consolas is really too small.
Tarydon
A: 

ollifant I agree with you, they are different.

Others may not see any differences from screen shots, but on the actual machine I can see differences. Loading the same project with the same settings side by side looks different. I think it is the difference in how WPF renders fonts or something.

The VS 2010 pane looks shifted slightly left, like kerning in the font is off by a little or something. Again - same font in both VS 2008 and 2010.

I have tried now on Windows 7 and Windows Vista. Maybe older XP machines render differently, can't say (and no I won't load XP to find out).

Jason Short
A: 

I have noticed a rendering problem with Visual Studio 2010b2 as well. I've tried adjusting the clear type settings to no avail.

I use consolas 9 pt on win7x64 with a average 19 inch TFT.

This is what it looks like on my system. A side by side screen shot

Plural
yours passes the test. it is 'fixed'. but for me the font of the toolbar at the top is much much bolder.
Simon_Weaver
+1  A: 

Well I experience the same oddity (not only in VS2010, but in all WPF applications). Sadly there seems no way of setting a "backwards style" text rendering in WPF in general.

I just found this addon "Text Sharp" for VS2010 on the VS gallery which lets you select different font aliasing options for the VS2010 text editor, but at least for me, this didn't help with the issue.

Here is the link, if you might want to try it: Text Sharp VS2010 extension

Olli
thanks for the extension. i switched to 'Aliased' fonts. it only really seems to make a difference in the main editor. properties are still a disaster. you need to restart visual studio after going into 'extensions' and enabling 'per user extensions'. i hope they fix this issue soon
Simon_Weaver
+2  A: 

TextSharp is the answer right now. I really hope they continue to fix this issue because I've had terrible results on my primary and secondary monitors with the standard rendering. Using beta 2.

With 8 or 9pt Lucida Console the text is fine with text mode set to 'Aliased'.

Simon_Weaver
with VS2010 RC the issue is now completely fixed for me. BUT I did a complete system reformat before I installed the RC. the text quality is much much much better now. could possibly be video driver related. i did not do any cleartype modification on the new install. it is indistinguishable from VS2008 whereas VS2010 beta2 was just awful
Simon_Weaver
A: 

OK here's what you do. Finally figured it out!

You need to reset cleartype to the default values. Don't try to tune it based on what you think looks good - because what you think looks good won't in VS2010.

I noticed on a brand new install of Windows 7 my VS2010 text suddenly became a lot nicer. After running cleartype to try to get nice text on a wall mounted Sony TV I found it had totally screwed up text for my normal external monitor.

I haven't yet found a way to reset cleartype explicitly, but apparently the below explains what the defaults are :

When you open ClearType Text Tuner, select "Turn on ClearType" check box and click on Next. Then, again click on the Next after setting Native Resolution. Then, select the options as given below:

1st Screen – 1st Option out of 2

2nd Screen – 2nd Option out of 6

3rd Screen – 1st Option out of 3

4th Screen – 2nd Option out of 6

Finally, click on Finish.

This is for VS2010 RC.

Simon_Weaver
A: 

Please have a look at the screenshots in the following update (to come in final release of VS2010), and see if the improvements solve your issues with VS font rendering:

http://blogs.msdn.com/text/archive/2010/03/05/additional-wpf-text-clarity-improvements.aspx

http://blogs.msdn.com/visualstudio/archive/2010/03/11/wpf-text-clarity-improvements.aspx

Pavel Minaev