Font 'Consolas' does not support style 'Regular'

Support for all customers who have purchased a SAPIEN PowerShell Studio product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
tkozell
Posts: 5
Joined: Thu Aug 07, 2014 2:43 pm

Font 'Consolas' does not support style 'Regular'

Post by tkozell » Tue Sep 30, 2014 2:48 pm

Receiving this error when loading PowerShell Studio 2014, How do I correct this?

I am running Windows 7 64-Bit and the PowerShell Studio 2014 version is 4.1.63

PowerShell Studio 2014
Error: Font 'Consolas' does not support style 'Regular'
Last edited by tkozell on Tue Sep 30, 2014 2:58 pm, edited 1 time in total.

User avatar
tkozell
Posts: 5
Joined: Thu Aug 07, 2014 2:43 pm

Re: Font 'Consolas' does not support style 'Regular'

Post by tkozell » Tue Sep 30, 2014 2:56 pm

I am running Windows 7 64-Bit and the PowerShell Studio 2014 version is 4.1 63

Receiving an unhandled exception:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: Font 'Consolas' 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..ctor(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet)
at ...()
at ...ctor()
at ..( )
at ..( )
at ..( , Boolean )
at ..()
at ..(String )
at ..(String , Boolean )
at ..(Object , EventArgs )
at ..(Object , EventArgs )
at DevExpress.XtraBars.Ribbon.AppMenuFileLabel.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.Utils.Controls.ControlBase.WndProc(Message& m)
at DevExpress.XtraEditors.BaseControl.WndProc(Message& msg)
at DevExpress.XtraBars.Ribbon.AppMenuFileLabel.WndProc(Message& msg)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18063 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
PowerShell Studio
Assembly Version: 4.1.63.0
Win32 Version: 4.1.63.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202014/PowerShell%20Studio.exe
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18044 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18036 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18021 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
DevExpress.Utils.v13.2
Assembly Version: 13.2.7.0
Win32 Version: 13.2.7.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/DevExpress.Utils.v13.2/v4.0_13.2.7.0__b88d1754d700e49a/DevExpress.Utils.v13.2.dll
----------------------------------------
DevExpress.XtraBars.v13.2
Assembly Version: 13.2.7.0
Win32 Version: 13.2.7.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/DevExpress.XtraBars.v13.2/v4.0_13.2.7.0__b88d1754d700e49a/DevExpress.XtraBars.v13.2.dll
----------------------------------------
DevExpress.XtraEditors.v13.2
Assembly Version: 13.2.7.0
Win32 Version: 13.2.7.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/DevExpress.XtraEditors.v13.2/v4.0_13.2.7.0__b88d1754d700e49a/DevExpress.XtraEditors.v13.2.dll
----------------------------------------
ActiproSoftware.SyntaxEditor.WinForms
Assembly Version: 14.1.320.0
Win32 Version: 14.1.320.0
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/ActiproSoftware.SyntaxEditor.WinForms/14.1.320.0__c27e062d3c1a4763/ActiproSoftware.SyntaxEditor.WinForms.dll
----------------------------------------
ActiproSoftware.Shared.WinForms
Assembly Version: 14.1.320.0
Win32 Version: 14.1.320.0
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/ActiproSoftware.Shared.WinForms/14.1.320.0__c27e062d3c1a4763/ActiproSoftware.Shared.WinForms.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.WindowsAPICodePack.Shell
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202014/Microsoft.WindowsAPICodePack.Shell.DLL
----------------------------------------
DevExpress.Data.v13.2
Assembly Version: 13.2.7.0
Win32 Version: 13.2.7.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/DevExpress.Data.v13.2/v4.0_13.2.7.0__b88d1754d700e49a/DevExpress.Data.v13.2.dll
----------------------------------------
System.Design
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
LogicNP.FileView
Assembly Version: 12.0.0.0
Win32 Version: 12.0.0.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202014/LogicNP.FileView.DLL
----------------------------------------
System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18067 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
System.Data.OracleClient
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data.OracleClient/v4.0_4.0.0.0__b77a5c561934e089/System.Data.OracleClient.dll
----------------------------------------
ActiveDatabaseSoftware.ActiveQueryBuilder2
Assembly Version: 2.8.0.649
Win32 Version: 2.8.0.649
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/ActiveDatabaseSoftware.ActiveQueryBuilder2/2.8.0.649__3cbcbcc9bf57ecde/ActiveDatabaseSoftware.ActiveQueryBuilder2.dll
----------------------------------------
Npgsql
Assembly Version: 2.0.13.91
Win32 Version: 2.0.13.91
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202014/Npgsql.DLL
----------------------------------------
System.Windows.Forms.DataVisualization
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.DataVisualization/v4.0_4.0.0.0__31bf3856ad364e35/System.Windows.Forms.DataVisualization.dll
----------------------------------------
MySql.Data
Assembly Version: 6.7.4.0
Win32 Version: 6.7.4.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202014/MySql.Data.DLL
----------------------------------------
System.ServiceProcess
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
----------------------------------------
LogicNP.FolderView
Assembly Version: 12.0.0.0
Win32 Version: 12.0.0.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202014/LogicNP.FolderView.DLL
----------------------------------------
LogicNP.ShComboBox
Assembly Version: 12.0.0.0
Win32 Version: 12.0.0.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202014/LogicNP.ShComboBox.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18060 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Data.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18060
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Data.Linq.dll
----------------------------------------
{a214a1b1-bc00-4ccf-b1fe-89c7ae460111}
Assembly Version: 0.0.0.0
Win32 Version: 4.1.63.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202014/PowerShell%20Studio.exe
----------------------------------------
PSSyntaxCheck
Assembly Version: 1.0.1.0
Win32 Version: 1.0.1.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202014/PSSyntaxCheck.DLL
----------------------------------------
PSSyntaxCheckV3
Assembly Version: 1.1.1.0
Win32 Version: 1.1.1.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202014/PSSyntaxCheckV3.DLL
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Microsoft.mshtml
Assembly Version: 7.0.3300.0
Win32 Version: 7.0.3300.0
CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: 4.0.30319.18063 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Last edited by tkozell on Tue Sep 30, 2014 3:15 pm, edited 1 time in total.

User avatar
davidc
Posts: 5817
Joined: Thu Aug 18, 2011 4:56 am

Re: Font 'Consolas' does not support style 'Regular'

Post by davidc » Tue Sep 30, 2014 3:14 pm

Please update to the latest service build and let us know if the issue persists.


David
David
SAPIEN Technologies, Inc.

User avatar
tkozell
Posts: 5
Joined: Thu Aug 07, 2014 2:43 pm

Re: Font 'Consolas' does not support style 'Regular'

Post by tkozell » Wed Oct 01, 2014 6:29 am

updated to version 4.1.71, still getting message. Application closes out after clicking OK on error message.

---------------------------
Font 'Consolas' 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..ctor(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet)

at €...()

at ...ctor()

at ..( )

at ..( )

at ..( , Boolean )

at ..()

at ..()

at ...ctor(StringCollection files)

at ..(String[] )
---------------------------

User avatar
davidc
Posts: 5817
Joined: Thu Aug 18, 2011 4:56 am

Re: Font 'Consolas' does not support style 'Regular'

Post by davidc » Wed Oct 01, 2014 8:12 am

You are probably getting this error because the Consolas Regular font is missing from your machine.

Please go to Control Panel->Font and verify that Consolas exists.

Next determine that the regular font version is installed by selecting the Consoles from the list.

The new window will show the Font Styles on the status bar or Right-click on the Font->Open. A new window will open with all the Consoles fonts, Regular, Bold, Italic, and Italic Bold.

David
David
SAPIEN Technologies, Inc.

User avatar
tkozell
Posts: 5
Joined: Thu Aug 07, 2014 2:43 pm

Re: Font 'Consolas' does not support style 'Regular'

Post by tkozell » Wed Oct 01, 2014 9:32 am

Dave,

You were correct, the Consolas font was missing from the list in Control Panel | Fonts. I was able to download a Consolas.ttf file and install it. When I load PowerShell Studio 2014 application it loads without issue.

Someone ran a script to remove Project from my system, I wonder if the font was removed then....

Thanks for your help
Tom K.