{"id":2943,"date":"2009-10-27T05:09:00","date_gmt":"2009-10-27T05:09:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudio\/2009\/10\/27\/vs-2010-beta2-workaround-for-raster-font-settings-issue\/"},"modified":"2019-02-14T15:42:14","modified_gmt":"2019-02-14T23:42:14","slug":"vs-2010-beta2-workaround-for-raster-font-settings-issue","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/vs-2010-beta2-workaround-for-raster-font-settings-issue\/","title":{"rendered":"VS 2010 Beta2:  Workaround for Raster Font Settings Issue"},"content":{"rendered":"<p>In addition to making announcements, showcasing features, posting walkthroughs, and sharing Visual Studio tips and tricks, we&rsquo;ll also be using this blog to raise awareness of commonly-encountered bugs and explain their workarounds.&nbsp; As many of you know, we&rsquo;ve rebuilt the editor using WPF for Visual Studio 2010.&nbsp; This allows for a wealth of new visualizations and enables many new extensibility scenarios, often making previously impossible tasks possible and previously difficult tasks much easier.&nbsp; However, because WPF renders only TrueType fonts, it also means that the Visual Studio editor no longer supports raster or bitmap fonts.<\/p>\n<p><strong>The Bug: <br \/><\/strong>Attempting to use a non-TrueType font in Visual Studio 2010 Beta2 throws an exception when opening a file, usually with the message &ldquo;Object reference not set to an instance of an object.&rdquo;&nbsp; The editor will not load.<\/p>\n<p><strong>The Workaround: <br \/><\/strong>In Tools-&gt;Options-&gt;Environment-&gt;Fonts and Colors, change any raster or bitmap font settings to a TrueType font, or simply click OK to have any raster fonts fall back to the default font (Consolas on English systems).&nbsp; The editor should then load correctly. <\/p>\n<p><strong>Fix Status: <br \/><\/strong>Already fixed for Visual Studio 2010 RTM.<\/p>\n<p>The most common way to encounter this bug is to import settings that include a non-TrueType font from a previous version of Visual Studio.&nbsp; Running &#8220;devenv \/resetuserdata&#8221; will also resolve the issue, though it will reset all of your settings to the defaults and therefore change more of your preferences than is necessary to fix the problem.&nbsp; This bug has already been fixed for VS 2010 RTM, where importing or selecting a non-TrueType font will cause the editor to fall back to the default font (Consolas on English systems) and load successfully instead of throwing an exception.<\/p>\n<p>We also discovered that although most bitmap fonts were removed from the default Fonts and Colors list, we inadvertently missed a few.&nbsp; They are:&nbsp; Courier, Fixedsys, Modern, MS Sans Serif, MS Serif, Roman, Script, Small Fonts, System, and Terminal.&nbsp; These fonts have already been removed from the default list for VS 2010 RTM.<\/p>\n<p>Again, this is a bug in Visual Studio Beta2 that has already been fixed internally for VS 2010 RTM.&nbsp; If you have any questions about this bug or its workaround, please feel free to post a comment below and we&rsquo;ll do our best to help.<\/p>\n<p>Thanks for trying Visual Studio 2010 Beta2!<\/p>\n<p>Brittany Behrens <br \/>Program Manager, Visual Studio Editor Team<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In addition to making announcements, showcasing features, posting walkthroughs, and sharing Visual Studio tips and tricks, we&rsquo;ll also be using this blog to raise awareness of commonly-encountered bugs and explain their workarounds.&nbsp; As many of you know, we&rsquo;ve rebuilt the editor using WPF for Visual Studio 2010.&nbsp; This allows for a wealth of new visualizations [&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":[155],"tags":[13,20],"class_list":["post-2943","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio","tag-visual-studio-2010","tag-wpf"],"acf":[],"blog_post_summary":"<p>In addition to making announcements, showcasing features, posting walkthroughs, and sharing Visual Studio tips and tricks, we&rsquo;ll also be using this blog to raise awareness of commonly-encountered bugs and explain their workarounds.&nbsp; As many of you know, we&rsquo;ve rebuilt the editor using WPF for Visual Studio 2010.&nbsp; This allows for a wealth of new visualizations [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/2943","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=2943"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/2943\/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=2943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=2943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=2943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}