Courier New does not support style "regular" [Answered]RSS

19 replies

Last post Apr 01, 2011 01:22 PM by simtan

  • Courier New does not support style "regular"

    Feb 18, 2011 04:49 AM|Snapafun|LINK

     Trying to use Webmatrix and when I attempt a new file ( html ) I get a popup displaying this message. It offers suggestions which go nowhere and basically I have to restart webmatrix again. Never ending loop attempting to get a new file started.

    This of course means that I'm unable to use webmatrix at all.

     Any suggestions anyone?

    Snip 

    Seeking USER_FUNCTIONALITY always.
    Regards
    SnapafunFrank
    Big or small, any challenge requires the same commitment to resolve.
  • Re: Courier New does not support style "regular"

    Feb 19, 2011 07:22 PM|simtan|LINK

    Hello,

    This seems like quite a serious bug. Could you take the text from the Error Log (your screenshot suggests it can be found in your AppData\Local\Temp folder) and report this on our Microsoft Connect site here:

     http://connect.microsoft.com/webmatrix/feedback/

    Thank you for finding this!

    Simon Tan
    Program Manager
    Web Platform and Tools
  • Re: Courier New does not support style "regular"

    Feb 19, 2011 07:24 PM|simtan|LINK

    In addition, you might want to go into WebMatrix's Option dialog and change the default Editor font - this may fix the problem.

    The Options dialog can be accessed from the application menu in the upper-left corner of WebMatrix.

    Simon Tan
    Program Manager
    Web Platform and Tools
  • Re: Courier New does not support style "regular"

    Feb 21, 2011 02:56 PM|alisonl|LINK

    Hi Snapafun,

    What OS are you using?  Also, does this happen to only new HTML files or all file types?  What about opening existing files you have (instead of creating a new one)?

    When you go into the Options dialog -> Files tab, can you also note what the original Font is before you select something else?  Thanks for bringing up this issue, and this extra info might help us figure out what is going on.

    Thanks,
    Alison

  • Re: Courier New does not support style "regular"

    Feb 23, 2011 02:46 AM|Snapafun|LINK

     Windows 7 Home Premium

    The original font was not courier new.  Cursor something I believe. I've since changed it to Arial but it makes no difference.

    Just tried to open an existing site from within my HDD and though the folder tree displayed correctly, when I went to open a file I got the same result.

    As said. I have NOT elected to use courier new anywhere here. Using courier new with my office app works fine so the system font is sound.

    Just found this in my log files:


    --------
    18/02/2011 10:29:00 p.m.
    --------
    System.ArgumentException: Font 'Courier New' does not support style 'Regular'.
       at System.Drawing.Font.CreateNativeFont()
       at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
       at System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
       at System.Drawing.Font..ctor(String familyName, Single emSize)
       at ActiproSoftware.SyntaxEditor.SyntaxEditor.ResetFont()
       at ActiproSoftware.SyntaxEditor.SyntaxEditor..ctor()
       at Microsoft.WebMatrix.Editor.SyntaxEditorOverride..ctor(ModuleGlobals globals)
       at Microsoft.WebMatrix.Editor.EditorActipro..ctor(ModuleGlobals globals)
       at Microsoft.WebMatrix.Editor.EditorFactoryActipro.CreateEditor()
       at Microsoft.WebMatrix.FileEditor.EditorView..ctor(ModuleGlobals globals)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.OpenFileInEditor(FileDetails details)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.OpenFile(FileDetails details)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.HandleNavigationRequest(Object data)
       at Microsoft.WebMatrix.FileEditor.FileEditorModule.OpenFileInternal(String filePath, OpenMode mode)
       at Microsoft.WebMatrix.FileEditor.FileEditorModule.Microsoft.WebMatrix.Client.IFileEditorModule.OpenFile(HierarchyInfo hierarchyInfo)
       at Microsoft.WebMatrix.FileEditor.FileEditorPageCommandTarget.ExecuteNewFromTemplate(Command command, Object parameter)
       at Microsoft.WebMatrix.Editor.CommandTargetBase.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.Client.Win32.ModulePageWPF.Microsoft.WebMatrix.Client.ICommandTarget.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.Host.UserInterface.ManagementFrameWPF.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.Host.Shell.CommonShellCommands.Microsoft.WebMatrix.Client.ICommandTarget.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.Host.Shell.ShellMainWPF.Microsoft.WebMatrix.Client.ICommandTarget.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.Host.CommandManagerImplementation.ExecuteInternal(Command command, Object parameter)
       at Microsoft.WebMatrix.Host.CommandManagerImplementation.Execute(CommandId commandId, Object parameter)
       at Microsoft.WebMatrix.Host.CommandManagerImplementation.Execute(CommandId commandId)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.OnNewFileButtonClicked(Object sender, RoutedEventArgs eventArgs)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
       at System.Windows.Controls.Primitives.ButtonBase.OnClick()
       at System.Windows.Controls.Button.OnClick()
       at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
       at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at Microsoft.WebMatrix.Host.Shell.ShellApplication.Execute(Boolean localDevelopmentMode, Boolean resetPreferences, Boolean resetPreferencesNoLaunch, Boolean warmupMode)

    --------
    18/02/2011 10:38:13 p.m.
    --------
    System.ArgumentException: Font 'Courier New' does not support style 'Regular'.
       at System.Drawing.Font.CreateNativeFont()
       at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
       at System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
       at System.Drawing.Font..ctor(String familyName, Single emSize)
       at ActiproSoftware.SyntaxEditor.SyntaxEditor.ResetFont()
       at ActiproSoftware.SyntaxEditor.SyntaxEditor..ctor()
       at Microsoft.WebMatrix.Editor.SyntaxEditorOverride..ctor(ModuleGlobals globals)
       at Microsoft.WebMatrix.Editor.EditorActipro..ctor(ModuleGlobals globals)
       at Microsoft.WebMatrix.Editor.EditorFactoryActipro.CreateEditor()
       at Microsoft.WebMatrix.FileEditor.EditorView..ctor(ModuleGlobals globals)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.OpenFileInEditor(FileDetails details)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.OpenFile(FileDetails details)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.HandleNavigationRequest(Object data)
       at Microsoft.WebMatrix.FileEditor.FileEditorModule.OpenFileInternal(String filePath, OpenMode mode)
       at Microsoft.WebMatrix.FileEditor.FileEditorModule.Microsoft.WebMatrix.Client.IFileEditorModule.OpenFile(HierarchyInfo hierarchyInfo)
       at Microsoft.WebMatrix.FileEditor.FileEditorPageCommandTarget.ExecuteNewFromTemplate(Command command, Object parameter)
       at Microsoft.WebMatrix.Editor.CommandTargetBase.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.Client.Win32.ModulePageWPF.Microsoft.WebMatrix.Client.ICommandTarget.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.Host.UserInterface.ManagementFrameWPF.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.Host.Shell.CommonShellCommands.Microsoft.WebMatrix.Client.ICommandTarget.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.Host.Shell.ShellMainWPF.Microsoft.WebMatrix.Client.ICommandTarget.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.Host.CommandManagerImplementation.ExecuteInternal(Command command, Object parameter)
       at Microsoft.WebMatrix.Host.CommandManagerImplementation.Execute(CommandId commandId, Object parameter)
       at Microsoft.WebMatrix.Host.CommandManagerImplementation.Execute(CommandId commandId)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.OnNewFileButtonClicked(Object sender, RoutedEventArgs eventArgs)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
       at System.Windows.Controls.Primitives.ButtonBase.OnClick()
       at System.Windows.Controls.Button.OnClick()
       at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
       at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at Microsoft.WebMatrix.Host.Shell.ShellApplication.Execute(Boolean localDevelopmentMode, Boolean resetPreferences, Boolean resetPreferencesNoLaunch, Boolean warmupMode)

    --------
    18/02/2011 10:39:20 p.m.
    --------
    System.ArgumentException: Font 'Courier New' does not support style 'Regular'.
       at System.Drawing.Font.CreateNativeFont()
       at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
       at System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
       at System.Drawing.Font..ctor(String familyName, Single emSize)
       at ActiproSoftware.SyntaxEditor.SyntaxEditor.ResetFont()
       at ActiproSoftware.SyntaxEditor.SyntaxEditor..ctor()
       at Microsoft.WebMatrix.Editor.SyntaxEditorOverride..ctor(ModuleGlobals globals)
       at Microsoft.WebMatrix.Editor.EditorActipro..ctor(ModuleGlobals globals)
       at Microsoft.WebMatrix.Editor.EditorFactoryActipro.CreateEditor()
       at Microsoft.WebMatrix.FileEditor.EditorView..ctor(ModuleGlobals globals)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.OpenFileInEditor(FileDetails details)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.OpenFile(FileDetails details)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.HandleNavigationRequest(Object data)
       at Microsoft.WebMatrix.FileEditor.FileEditorModule.OpenFileInternal(String filePath, OpenMode mode)
       at Microsoft.WebMatrix.FileEditor.FileEditorModule.Microsoft.WebMatrix.Client.IFileEditorModule.OpenFile(HierarchyInfo hierarchyInfo)
       at Microsoft.WebMatrix.FileEditor.FileEditorPageCommandTarget.ExecuteNewFromTemplate(Command command, Object parameter)
       at Microsoft.WebMatrix.Editor.CommandTargetBase.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.Client.Win32.ModulePageWPF.Microsoft.WebMatrix.Client.ICommandTarget.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.Host.UserInterface.ManagementFrameWPF.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.Host.Shell.CommonShellCommands.Microsoft.WebMatrix.Client.ICommandTarget.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.Host.Shell.ShellMainWPF.Microsoft.WebMatrix.Client.ICommandTarget.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.Host.CommandManagerImplementation.ExecuteInternal(Command command, Object parameter)
       at Microsoft.WebMatrix.Host.CommandManagerImplementation.Execute(CommandId commandId, Object parameter)
       at Microsoft.WebMatrix.Host.CommandManagerImplementation.Execute(CommandId commandId)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.OnNewFileButtonClicked(Object sender, RoutedEventArgs eventArgs)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
       at System.Windows.Controls.Primitives.ButtonBase.OnClick()
       at System.Windows.Controls.Button.OnClick()
       at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
       at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at Microsoft.WebMatrix.Host.Shell.ShellApplication.Execute(Boolean localDevelopmentMode, Boolean resetPreferences, Boolean resetPreferencesNoLaunch, Boolean warmupMode)

    --------
    20/02/2011 5:05:50 p.m.
    --------
    System.ArgumentException: Font 'Courier New' does not support style 'Regular'.
       at System.Drawing.Font.CreateNativeFont()
       at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
       at System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
       at System.Drawing.Font..ctor(String familyName, Single emSize)
       at ActiproSoftware.SyntaxEditor.SyntaxEditor.ResetFont()
       at ActiproSoftware.SyntaxEditor.SyntaxEditor..ctor()
       at Microsoft.WebMatrix.Editor.SyntaxEditorOverride..ctor(ModuleGlobals globals)
       at Microsoft.WebMatrix.Editor.EditorActipro..ctor(ModuleGlobals globals)
       at Microsoft.WebMatrix.Editor.EditorFactoryActipro.CreateEditor()
       at Microsoft.WebMatrix.FileEditor.EditorView..ctor(ModuleGlobals globals)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.OpenFileInEditor(FileDetails details)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.OpenFile(FileDetails details)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.HandleNavigationRequest(Object data)
       at Microsoft.WebMatrix.FileEditor.FileEditorModule.OpenFileInternal(String filePath, OpenMode mode)
       at Microsoft.WebMatrix.FileEditor.FileEditorModule.Microsoft.WebMatrix.Client.IFileEditorModule.OpenFile(HierarchyInfo hierarchyInfo)
       at Microsoft.WebMatrix.FileEditor.FileEditorPageCommandTarget.ExecuteNewFromTemplate(Command command, Object parameter)
       at Microsoft.WebMatrix.Editor.CommandTargetBase.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.Client.Win32.ModulePageWPF.Microsoft.WebMatrix.Client.ICommandTarget.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.Host.UserInterface.ManagementFrameWPF.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.Host.Shell.CommonShellCommands.Microsoft.WebMatrix.Client.ICommandTarget.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.Host.Shell.ShellMainWPF.Microsoft.WebMatrix.Client.ICommandTarget.Execute(Command command, Object parameter)
       at Microsoft.WebMatrix.Host.CommandManagerImplementation.ExecuteInternal(Command command, Object parameter)
       at Microsoft.WebMatrix.Host.CommandManagerImplementation.Execute(CommandId commandId, Object parameter)
       at Microsoft.WebMatrix.Host.CommandManagerImplementation.Execute(CommandId commandId)
       at Microsoft.WebMatrix.FileEditor.FileEditorModulePage.OnNewFileButtonClicked(Object sender, RoutedEventArgs eventArgs)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
       at System.Windows.Controls.Primitives.ButtonBase.OnClick()
       at System.Windows.Controls.Button.OnClick()
       at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
       at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at Microsoft.WebMatrix.Host.Shell.ShellApplication.Execute(Boolean localDevelopmentMode, Boolean resetPreferences, Boolean resetPreferencesNoLaunch, Boolean warmupMode)

    Hope it helps.

     

    Seeking USER_FUNCTIONALITY always.
    Regards
    SnapafunFrank
    Big or small, any challenge requires the same commitment to resolve.
  • Re: Courier New does not support style "regular"

    Feb 23, 2011 05:25 PM|alisonl|LINK

    Thanks, this definitely helps.  We will take a look on our side and let you know if we need any more information.

     -Alison

  • Re: Courier New does not support style "regular"

    Feb 23, 2011 05:45 PM|HCamper|LINK

    Hello,

    I have had problems like yours with fonts that are on the developer system / server and not in the user or web site.

    Also Visual Studio 2003,Visual 2005,Visual Studio 2008 have a bad habit  extended font ablities that at runtime the fonts do not have.

    For the Web Site Problem you can use a tool from Microsoft Typography it provides methods

    to embed the fonts the tool is free.

    For Applications I have found it best to find the physical I use ArialUnicodet.ttf file and as resource in the program folder.

    If you publish the application you include the ArialUnicode.ttf and install to the system font folder.

    Take this FYI.

    Thank You,

    Martin:

    Windows and Linux work Together IT-Pros
    Community Member Award 2011
  • Re: Courier New does not support style "regular"

    Mar 07, 2011 09:08 PM|alisonl|LINK

    Hi Snapafun,

    We took a look at what's going on, and what's happening is that the editor uses Courier New font in the background when it first launches, regardless of what your file's font is.  One possibility of why this error would appear is that the font doesn't exist or is corrupted.  I know you mentioned Courier New works in your Office app, but I'm not sure if Office uses a different set of fonts.  A couple of thing you can try to fix this is this...

    - See if "Courier New Regular" is installed by looking under Control Panel\Appearance\Fonts\Courier New

    - Try reinstalling the font by copying the font file from a different machine.  This topic has more details:
    http://blogs.msdn.com/b/brandonturner/archive/2009/03/31/courier-new-hates-me-font-courier-new-does-not-support-style-regular.aspx

    I hope this helps, and please let us know if this fixes the issue.

    Thanks!
    Alison

  • Re: Courier New does not support style "regular"

    Mar 29, 2011 02:27 PM|shakirthankful|LINK

    That information might help a seasoned vet, but it did not do me any good I have the slightest what you are talking about. I am realitively new at this and if it not ABC or 123 I have a hard time digesting the concept.
  • Re: Courier New does not support style "regular"

    Mar 29, 2011 02:41 PM|shakirthankful|LINK

    I have only one computer here at my house where would I get another copy of the fonts from?
  • Re: Courier New does not support style "regular"

    Mar 29, 2011 02:42 PM|shakirthankful|LINK

    I have only one computer here at my house where would I get another copy of the fonts from?                          
  • Re: Courier New does not support style "regular"

    Mar 29, 2011 02:42 PM|shakirthankful|LINK

    That information might help a seasoned vet, but it did not do me any good I have the slightest what you are talking about. I am realitively new at this and if it not ABC or 123 I have a hard time digesting the concept.                          
  • Re: Courier New does not support style "regular"

    Mar 29, 2011 03:24 PM|HCamper|LINK

    Hello,

    The resolution of problem and some causes.

    The problem is the font that is being used has a problem.

    Martin

     

    Windows and Linux work Together IT-Pros
    Community Member Award 2011
  • Re: Courier New does not support style "regular"

    Mar 30, 2011 05:28 AM|Snapafun|LINK

    "Courier New Regular" is a Professional Font and though you will find "Courier New" and "Courier Regular" on a windows system you will not find "Courier New Regular". I found it on the web and the going price is $30 best I could find. Would the developers not change their background font to one of the others instead of us having to pay for getting it started when we only want to see what it can do?

    NB: The info I supplied above refers to "Courier New Regular"  - all three words and NOT anything else.

    Seeking USER_FUNCTIONALITY always.
    Regards
    SnapafunFrank
    Big or small, any challenge requires the same commitment to resolve.
  • Re: Courier New does not support style "regular"

    Mar 31, 2011 03:49 AM|simtan|LINK

    Hello,

    Please try replacing your copy of Courier New (Regular style) in C:\Windows\Fonts\ , as the article linked by Alison suggests. You can download a copy of the font file here:

    http://connect.microsoft.com/webmatrix/Downloads

    Simon Tan
    Program Manager
    Web Platform and Tools
  • Re: Courier New does not support style "regular"

    Mar 31, 2011 07:51 AM|shakirthankful|LINK

    I appreciate it. Now how do you unzip a file in matrix? I am trying to import a template into matrix but the file is zipped or how do you import a template in matrix
  • Re: Courier New does not support style "regular"

    Mar 31, 2011 08:43 PM|simtan|LINK

    You can unzip the template into a folder (anywhere), then create a new "Site from Folder", pointing WebMatrix to it. 

    By the way, it would be very helpful to others if you could open new threads if you have new questions :)

    Simon Tan
    Program Manager
    Web Platform and Tools
  • Re: Courier New does not support style "regular"

    Mar 31, 2011 11:09 PM|shakirthankful|LINK

    Ok sorry I will open new threads in the future. Thanks for your help.
  • Re: Courier New does not support style "regular"

    Mar 31, 2011 11:34 PM|shakirthankful|LINK

    Ok that worked, but I wanted that template for a site that already exists in matrix. I never seen a tool in matrix that lets you tranfer files from one site to another, is that possible?
  • Re: Courier New does not support style "regular"

    Apr 01, 2011 01:22 PM|simtan|LINK

    No, that is not currently possible - however, you can right-click any file or folder in the tree view and choose to "Show in Windows Explorer" - this will provide a shortcut into the folder where the site lies, and you can move or copy files back and forth using Windows Explorer.

    Hope that helps!

    Simon Tan
    Program Manager
    Web Platform and Tools