{"id":2313,"date":"2010-03-14T23:00:00","date_gmt":"2010-03-14T23:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudio\/2010\/03\/14\/visual-studio-2010-text-clarity-cleartype-options\/"},"modified":"2022-10-17T11:05:11","modified_gmt":"2022-10-17T18:05:11","slug":"visual-studio-2010-text-clarity-cleartype-options","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/visual-studio-2010-text-clarity-cleartype-options\/","title":{"rendered":"Visual Studio 2010 Text Clarity: ClearType Options"},"content":{"rendered":"<p>Text clarity in Visual Studio 2010 has been a hot topic throughout the product cycle. Each time we talk or write about it, we seem to invite yet another round comments, some of them quite <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wpf-in-visual-studio-2010-part-1-introduction\/\">emotionally charged<\/a>. We take such feedback very seriously because, whether the comments are completely justified or not, there\u2019s always some nugget of customer discontent at the heart of it. So, risking the same result here, I want to tackle the topic one more (last?) time.<\/p>\n<h3>Turning off ClearType<\/h3>\n<p>Following <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wpf-text-clarity-improvements\/\">Brittany\u2019s post<\/a> earlier in the week regarding <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wpf-text-clarity-improvements\/\">improvements<\/a> we\u2019ve made to <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/ms749295(VS.100).aspx\">ClearType<\/a> text clarity in time for Visual Studio 2010 and .Net 4 RTM, several people indicated in the comments that they would rather not use ClearType at all. I was going to reply in the comment stream, but a full response needs some pictures and more space than the comments would allow.<\/p>\n<p>To address Brian Henry\u2019s comment directly, Visual Studio 2010 uses WPF 4\u2019s <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/system.windows.media.textrenderingmode(VS.100).aspx\">TextRenderingMode.Auto<\/a> setting; or rather &#8211; it doesn\u2019t change the default. This means that, if you turn off ClearType for your desktop, then Visual Studio 2010\u2019s text will respect that choice. <a href=\"http:\/\/www.microsoft.com\/typography\/ClearTypeInfo.mspx\">ClearType<\/a> is designed for LCD screens and other flat panels which arrange their pixels in vertical stripes of red, green and blue. It\u2019s not ideal for CRTs or for displays with different pixel geometry, for example a rotating flat-panel display that is turned to portrait mode. Apart from that, some people (perhaps between <a href=\"https:\/\/learn.microsoft.com\/en-us\/archive\/blogs\/e7\/engineering-changes-to-cleartype-in-windows-7\">5%<\/a> and <a href=\"http:\/\/www.ischool.utexas.edu\/~ct\/chi_p618.pdf\">45%<\/a>) simply prefer non-ClearType rendering, even if their display supports it.<\/p>\n<h3>Adjust font smoothing on Windows XP and Windows Vista<\/h3>\n<p>On Windows XP and Windows Vista, ClearType may be turned off by first going to the Display Properties settings from the Control Panel. Select \u201cAppearance\u201d and click \u201cEffects\u2026\u201d and uncheck the box that says \u201cUse the following method to smooth edges of screen fonts:\u201d.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/image_45.png\"><img decoding=\"async\" style=\"border-width: 0px;\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2010\/03\/image_thumb_21.png\" alt=\"image\" width=\"425\" height=\"183\" border=\"0\" \/><\/a><\/p>\n<p>Note that there are three settings: No font smoothing (unchecked), Standard font smoothing and ClearType. Click OK when you have made the selection and then Close the Display Properties dialog to apply the new setting.<\/p>\n<h3>ClearType Tuner and Visual Effects option on Windows 7<\/h3>\n<p>In Windows 7, you can turn off ClearType using the built-in ClearType Tuner. Type \u201cClearType\u201d into the Windows search box and select \u201cAdjust ClearType text\u201d:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/image_9.png\"><img decoding=\"async\" style=\"border-width: 0px;\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2010\/03\/image_thumb_3-1.png\" alt=\"image\" width=\"414\" height=\"60\" border=\"0\" \/><\/a><\/p>\n<p>On the first screen, uncheck the box that says \u201cTurn on ClearType\u201d<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/image_11.png\"><img decoding=\"async\" style=\"border-width: 0px;\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2010\/03\/image_thumb_4.png\" alt=\"image\" width=\"434\" height=\"219\" border=\"0\" \/><\/a><\/p>\n<p>Run through the rest of the ClearType Text Tuner Wizard and now Visual Studio 2010, and other applications, will use standard anti-aliasing instead of ClearType for text rendering. To turn off font smoothing entirely, you need to <a href=\"https:\/\/learn.microsoft.com\/en-us\/archive\/blogs\/e7\/engineering-changes-to-cleartype-in-windows-7\">dig a little deeper<\/a>. Type \u201cAppearance\u201d in the start menu and select \u201cAdjust the appearance and performance of Windows\u201d:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/image_51.png\"><img decoding=\"async\" style=\"border-width: 0px;\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2010\/03\/image_thumb_24.png\" alt=\"image\" width=\"334\" height=\"74\" border=\"0\" \/><\/a><\/p>\n<p>On the \u201cVisual Effects\u201d tab of the \u201cPerformance Options\u201d dialog, scroll down to \u201cSmooth the edges of screen fonts\u201d, uncheck it and click \u201cOK\u201d.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/image_53.png\"><img decoding=\"async\" style=\"border-width: 0px;\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2010\/03\/image_thumb_25.png\" alt=\"image\" width=\"381\" height=\"545\" border=\"0\" \/><\/a><\/p>\n<p>You shouldn\u2019t need to restart Visual Studio 2010 for this to take effect. This works in the Visual Studio 2010 Release Candidate too; you don\u2019t have to wait for RTM to see it. The following screenshots are from Visual Studio 2010 RC.<\/p>\n<table style=\"width: 735px;\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"324\"><em>Segoe UI, ClearType on<\/em><\/td>\n<td valign=\"top\" width=\"244\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2010\/03\/image_15.png\" \/><\/td>\n<td valign=\"top\" width=\"165\"><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/image_29.png\"><img decoding=\"async\" style=\"border-width: 0px;\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2010\/03\/image_thumb_13.png\" alt=\"image\" width=\"167\" height=\"76\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"324\"><em>Segoe UI, <\/em><em>ClearType off, Standard font smoothing (grayscale)<\/em><\/td>\n<td valign=\"top\" width=\"244\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2010\/03\/1348.ClearTypeOff_FileMenu.png\" border=\"0\" \/><\/td>\n<td valign=\"top\" width=\"165\"><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/image_23.png\"><img decoding=\"async\" style=\"border-width: 0px;\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2010\/03\/image_thumb_10.png\" alt=\"image\" width=\"174\" height=\"81\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"324\"><em>Segoe UI, <\/em>\u00a0<em>No font smoothing (bi-level rendering, aliased)<\/em><\/td>\n<td valign=\"top\" width=\"244\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2010\/03\/image_47.png\" \/><\/td>\n<td valign=\"top\" width=\"165\"><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/image_49.png\"><img decoding=\"async\" style=\"border-width: 0px;\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2010\/03\/image_thumb_23.png\" alt=\"image\" width=\"171\" height=\"79\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><em>(Hint: If you\u2019re using Windows 7, and you want to see a zoomed-in view, don\u2019t \u201czoom\u201d your browser because that results in a bilinear stretch. Instead, use the <\/em><a href=\"http:\/\/windows.microsoft.com\/en-us\/windows7\/Make-items-on-the-screen-appear-bigger-Magnifier\"><em>built-in magnifier<\/em><\/a><em> tool. Type \u201cZoom\u201d in the Windows search box or, for a <\/em><a href=\"http:\/\/windows.microsoft.com\/en-US\/Windows7\/Keyboard-shortcuts\"><em>keyboard shortuct<\/em><\/a><em>, hold the Windows key and press the plus key.)<\/em><\/p>\n<p>If you\u2019re writing your own WPF 4 application, make sure you are using \u201c<a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/system.windows.media.textformattingmode(VS.100).aspx\">Display<\/a>\u201d mode for text (instead of the default, \u201cIdeal\u201d). In Display mode, WPF will follow the user\u2019s choice of ClearType on or off. The choice may be overridden by using other values from the <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/system.windows.media.textrenderingmode(VS.100).aspx\">TextRenderingMode<\/a> enumeration (ClearType, Grayscale or Aliased).<\/p>\n<h3>Consolas always uses ClearType<\/h3>\n<p>Even if you turn off font smoothing entirely, the Consolas font will be rendered using ClearType in Visual Studio 2010. This is an intentional decision for Visual Studio 2010 and applies only to Consolas. Consolas, the default font for the Text Editor in Visual Studio 2010, is part of the <a href=\"http:\/\/www.microsoft.com\/typography\/ClearTypeFonts.mspx\">ClearType Font Collection<\/a> and was <a href=\"http:\/\/en.wikipedia.org\/wiki\/Antialiased_font\">designed specifically<\/a> for use with ClearType.<\/p>\n<p>You may, of course, select a different font for the Text Editor by using the \u201c<a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/kw7t0545(VS.100).aspx\">Fonts and Colors<\/a>\u201d dialog in Visual Studio\u2019s Options. Anything other than Consolas will respect the system\u2019s font smoothing options.<\/p>\n<p>If you want to continue to use Consolas, but without ClearType, then you may be interested in the <a href=\"http:\/\/visualstudiogallery.msdn.microsoft.com\/en-us\/7aafa2ea-8c54-4da8-922e-d26bf018514d\">\u201cTextSharp\u201d extension<\/a> by <a href=\"http:\/\/www.svprogramming.net\/\">Sergey Vlasov<\/a>. TextSharp has the option to set the text rendering mode to \u201cAliased\u201d for all text editor views.<\/p>\n<h3>Changing the Environment font<\/h3>\n<p>One commenter <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wpf-text-clarity-improvements\/\">indicated<\/a> that he prefers to replace the default \u201cSegoe UI\u201d font for menus and toolbars with \u201cMicrosoft Sans Serif\u201d. Here\u2019s how to do that.<\/p>\n<ol>\n<li>Launch Visual Studio 2010<\/li>\n<li>Select \u201cOptions\u2026\u201d from the Tools menu<\/li>\n<li>Select the \u201c<a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/kw7t0545(VS.100).aspx\">Fonts and Colors<\/a>\u201d page from the Environment group<\/li>\n<li>In the \u201cShow settings for\u201d dropdown, select \u201cEnvironment Font\u201d<\/li>\n<li>In the \u201cFont\u201d dropdown, select the font you want.<\/li>\n<li>Click \u201cOK\u201d<\/li>\n<\/ol>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/image_31.png\"><img decoding=\"async\" style=\"border-width: 0px;\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2010\/03\/image_thumb_14.png\" alt=\"image\" width=\"761\" height=\"444\" border=\"0\" \/><\/a><\/p>\n<p>And here\u2019s what Microsoft Sans Serif looks like on Windows 7 with ClearType turned off:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/image_35.png\"><img decoding=\"async\" style=\"border-width: 0px;\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2010\/03\/image_thumb_16.png\" alt=\"image\" width=\"220\" height=\"22\" border=\"0\" \/><\/a>\u00a0<a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/image_39.png\"><img decoding=\"async\" style=\"border-width: 0px;\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2010\/03\/image_thumb_18.png\" alt=\"image\" width=\"174\" height=\"77\" border=\"0\" \/><\/a> <a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/image_37.png\"><img decoding=\"async\" style=\"border-width: 0px;\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2010\/03\/image_thumb_17.png\" alt=\"image\" width=\"291\" height=\"228\" border=\"0\" \/><\/a><\/p>\n<p>Note: Microsoft Sans Serif does not have anti-aliased hinting, so it looks the same whether \u201cSmooth edges of screen fonts\u201d is on or off.<\/p>\n<p>For the Text Editor, instead of Consolas, try 9 point \u201cLucida Console\u201d. Again, use the Fonts and Colors dialog, but this time choose \u201cText Editor\u201d from the top dropdown.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/image_41.png\"><img decoding=\"async\" style=\"border-width: 0px;\" title=\"image\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2010\/03\/image_thumb_19.png\" alt=\"image\" width=\"331\" height=\"180\" border=\"0\" \/><\/a><\/p>\n<h3><\/h3>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/clip_image002_2.jpg\"><em><img decoding=\"async\" style=\"margin-left: 3px; margin-right: 3px; border-width: 0px;\" title=\"clip_image002\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2010\/03\/clip_image002_thumb-1.jpg\" alt=\"clip_image002\" width=\"101\" height=\"101\" align=\"left\" border=\"0\" \/><\/em><\/a><\/p>\n<p><strong>Paul Harrington<\/strong> \u2013 Principal Developer, Visual Studio Platform Team\n<strong>Biography: <\/strong>Paul has worked on every version of Visual Studio .Net to date. Prior to joining the Visual Studio team in 2000, Paul spent six years working on mapping and trip planning software for what is today known as Bing Maps. For Visual Studio 2010, Paul designed and helped write the code that enabled the Visual Studio Shell team to move from a native, Windows 32-based implementation to a modern, fully managed presentation layer based on the Windows Presentation Foundation (WPF). Paul holds a master\u2019s degree from the University of Cambridge, England and lives with his wife and two cats in Seattle, Washington.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Text clarity in Visual Studio 2010 has been a hot topic throughout the product cycle. Each time we talk or write about it, we seem to invite yet another round comments, some of them quite emotionally charged. We take such feedback very seriously because, whether the comments are completely justified or not, there\u2019s always some [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":255385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1196,155],"tags":[20],"class_list":["post-2313","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-desktop","category-visual-studio","tag-wpf"],"acf":[],"blog_post_summary":"<p>Text clarity in Visual Studio 2010 has been a hot topic throughout the product cycle. Each time we talk or write about it, we seem to invite yet another round comments, some of them quite emotionally charged. We take such feedback very seriously because, whether the comments are completely justified or not, there\u2019s always some [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/2313","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=2313"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/2313\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/255385"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=2313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=2313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=2313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}