Error: Arial font is not comptible with 'Regular' style


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Juan,



I will give you a few suggestions that we do within our medical application and try and point you in the right direction. When you deal with computers, it is just a matter of time before something like this happens Smile The first thing I will mention is that I do not think working around the Connection String Manager is enough. If you were to "wire" around this, you would have this same issue further downstream elsewhere. Here are a couple of thoughts:



1. We actually install fonts with our medical application. Not Arial, but Segoe UI and a few others that may not be present on the end-users machine. The first thing I would try would be to uninstall and re-install the fonts.



2. If that doesn't work, I would actually re-install the operating system. I have seen some weird stuff with Home editions before and we actually don't allow them to be used with our medical software in any network environment. Even so, just reloading the OS may resolve the issue in and of itself.



P.S. My guess is that another application or preloaded software did something to the GDI+ DLLs or fonts. I have seen this a number of times with OEM Windows versions.
Juan Carlos Pazos
Juan Carlos Pazos
StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)
Group: Forum Members
Posts: 144, Visits: 227
Hi Trent

It's an isolated case. It's a customer of our system and we don't have access to the computer or more information, as we chat with him he is using Windows Home (spanish).

The error comes from here:

'-- Establish Locals

'Dim lcPath As String = AddBS(Environment.GetFolderPath(Environment.SpecialFolder.CommonProgramFiles)) & "Datafox\Datafox Ventas Online 2010\Data\"

Dim lcPath As String = AddBS(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)) & "Datafox Ventas Online\Data\"

Dim loDeploy As MicroFour.StrataFrame.DBEngine.Deployment.MDDeployMain

'-- Create the deployment form

loDeploy = New MicroFour.StrataFrame.DBEngine.Deployment.MDDeployMain(lcPath & "DFVOL2010DB.pkg", "sukifero")

loDeploy.ShowDialog()

loDeploy.Close()

loDeploy.Dispose()

First the application shows a screen that has some instructions regarding the deployment of the database, when user clic Install the MDDeployMain is executed. I test this in Windows XP SP 3 with that has the OS and and antivirus installed and SQL Server Express 2008, other test where in Windows Vista Home Premium and Windows 7. It works in all of them.

I'm in the idea that is something wrong in the customer computer, the installer of our application does not install any fonts.

I know that I can create our own deployment screens, but I don't know how to let the user choose the server (the example does not contain that part) so I choose for let SF do the job. I ask about looking if someone has seen something similar before.

If you can indicate to me some instructions about how to let the user select the server I will make our own form for the deployment, because is simple, just has to create the database, tables and procedures and add some data. It's not necesary present other options to the user as your function does.

And I really sorry for can't give you more details, it should be something worong in that computer. I have 6 more applications at this time with other customers, no one has reported something like this, but if another has the problem, I will try to use remote access "to see" the computer and have more details.

I really thanks for your help. I takes more than a year put our first application using SF to work, but I really enjoy the framework, SF really works great and I can do many things that without SF sure I need two more years of work to do.

Regards

Juan Carlos Pazos

Smile Everything is possible, just keep trying...

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
It looks like it is getting the error just trying to create the font as part of a GDI+ operation. This is a strange one and something I have not come across before. Any additional information that you could provide would be helpful. Do they get an error on any other machines or is isolated to a single machine?
Juan Carlos Pazos
Juan Carlos Pazos
StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)
Group: Forum Members
Posts: 144, Visits: 227
Hi

Do you have any idea about this error (It says that Arial font is not comptible with 'Regular' style):

ArgumentException La fuente 'Arial' no es compatible con el estilo 'Regular'. Source : System.Drawing Stack Trace: en System.Drawing.Font.CreateNativeFont() en System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont) en System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle s

It's in a customer computer, this message shows lunching the connection manager. The computer is Windows Vista Home, and it has the Arial font installed.

Regards

Smile Everything is possible, just keep trying...

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search