Welcome to MSDN Blogs Sign in | Join | Help

Donkblog

Adventures into the world of amateurgramming. I'll leave the programming to the professionals.
Courier New hates me! - Font 'Courier New' does not support style 'Regular'

In the past month there have been 3 reports from users that Windows Live Writer will not start up.  After looking in the Windows Live Writer log file, the following exception was seen:

An unexpected error has occurred within the application.
System.ArgumentException: Font 'Courier New' does not support style 'Regular'.
   at System.Drawing.Font.CreateNativeFont()
   at System.Drawing.Font.Initialize(...)
   at System.Drawing.Font.Initialize(...)
   at System.Drawing.Font..ctor(...)

These reports have come on both Windows Vista and Windows 7.  Even after checking that the Courier New font file was still there, still signed by Microsoft, and the file size was the same as another computer… there was something wrong with the font.  Even double clicking it produced a window which shows the font correctly:  image

Replacing the font files from another computer has fixed the problem all 3 times.  Simply copy the C:\Windows\Fonts\cour.ttf from another computer to the broken machine.

Email me at bturner [at] microsoft [dot] com if you are still having problems even after replacing the file.

Posted: Tuesday, March 31, 2009 11:44 AM by Brandon Turner
Filed under:

Comments

Hares said:

Proveď vymazaní z Windows fontu - pokud ten font nepotřebuješ. (czech)

# April 1, 2009 4:20 PM

Joe D. said:

Thanks much for this information. I just had the same problem on an XP machine. I resolved the problem as you suggested. I just wonder what would cause the font file to be emptied.

Thanks!

Joe

# May 29, 2009 4:28 PM

Joe Pool said:

I'm noticing this a lot lately in our custom applications as well.

Has Microsoft released a patch that corrupted their Courier New font?

We've got systems that have been working fine for months, then all of a sudden, this error is showing up.

# June 2, 2009 4:07 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker